Comments (2)
The Container isn't meant to be used on the client, doing that will cause importing a great chunk of Astro itself.
from astro.
@ematipico is that an issue on a technical level or because of the resulting bundle size?
For that specific preview page which would utilize client rendering the larger bundle size wouldn’t be much of an issue.
My only concern would be to make sure certain server functions or secrets don’t leak into the client bundle somehow. But from how I understand it works, the client side Astro instance would be totally separate in the browser, and while there might be server-facing code in Astro files it has bundled, it would only be of those Components that I pass to it so it’s a matter of diligence, both regarding security and browser compatibility.
from astro.
Related Issues (20)
- npm install @astrojs/check typescript ? HOT 1
- Using Experimental Actions causes Build Error
- Using Astro Actions causes Build Error HOT 4
- i18n `getRelativeLocaleUrl` with `manual` routing strategy and i18n middleware returns wrong URL
- Script handles problems HOT 5
- Unstyled React Component After Build
- `vite.build.assetsInlineLimit` parameter is invalid
- Include an image's absolute URL in the ImageMetaData when images are processed in Content Collections to allow @vercel/og to render Astro's images
- uncaught error in the middle of the stream while rendering HOT 3
- preact + node adapter: hydration issues HOT 1
- [Container API] NoMatchingRenderer error when using the solid renderer HOT 1
- Issue with FOUC when moving from home page to other pages and vice versa.
- Change comma color in light theme on error page
- If the -- open flag is used, any modifications to the packagist.json file will reopen the browser at this time
- Astro check everything inside `dist` folder HOT 3
- Render client framework twice
- 4.11 not pruning `satori` build chunks, increasing build sizes HOT 3
- `astro check` fails after update astro from v4.11.0 to v4.11.3
- astro:env does not generate .astro/env.d.ts in develoment mode HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astro.