-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Feat/environment api #14306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Feat/environment api #14306
Conversation
🦋 Changeset detectedLatest commit: 21d819d The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
15a3eab to
c701fe4
Compare
CodSpeed Performance ReportMerging #14306 will not alter performanceComparing Summary
Footnotes |
* refactor: use environments to load modules (#14191) * refactor: make `App` more extensible using `BaseApp` (#14197) * refactor: App to extends the new BaseApp (#14213) * refactor: manifest as virtual module (#14298) * refactor: create `generate` when needed * fix type * remove type * fix types * fix breakage of code
* Use separate env to load content config * Format
* feat(cloudflare): add Vite plugin * Skip request handling when running in cloudflare * Skip lots of plugins in non-runnable envs * Use serialized-manifest * Use separate env to load content config * Format * fix rebase * fix type * Remove overrides * Remove trace --------- Co-authored-by: Emanuele Stoppa <[email protected]>
…14345) * refactor: dev app without settings and loader * address comments * chore: refactor to use proper dev pipeline * revert changes * chore: update lockfile * conditionally propagate metadata * revert exports
* Add support for content layer in env API * Lint * Format
* Support CF Images binding * Add support for content layer in env API * Lint * Format * Use image binding in dev --------- Co-authored-by: Samuel Macleod <[email protected]> Co-authored-by: Alexander Niebuhr <[email protected]>
This gets framework components to render in workerd. SSR and client both work.
Co-authored-by: ascorbic <[email protected]> Co-authored-by: matthewp <[email protected]>
Co-authored-by: Florian Lefebvre <[email protected]>
📝 Changeset Validation Results❌ Changeset validation failed Issues Found:
|
Co-authored-by: Matt Kane <[email protected]> Co-authored-by: Florian Lefebvre <[email protected]> Co-authored-by: florian-lefebvre <[email protected]> Co-authored-by: ascorbic <[email protected]> Co-authored-by: matthewp <[email protected]>
* refactor: unify manifest system, use serialized manifest as source of truth Merged the old plugin-manifest and new serialized-manifest systems into one. The serialized manifest is now the single source of truth for both dev and production builds. In dev, it's used directly. In prod, plugin-manifest appends real build data (routes, assets, CSP hashes) on top of it. This eliminates dual virtual modules and simplifies the architecture. The serialized manifest defines the manifest module content, while plugin-manifest handles build-specific concerns (entry point registration, filename tracking, injection). Enables Cloudflare Workers deployment by ensuring proper manifest handling in environment-specific builds. * linting * add comments and address constant * fix linting issues * use the const * linting
Co-authored-by: Florian Lefebvre <[email protected]>
* feat: full sessions support w/ environment api - create virtual module for cloudflare config (sessionKVBindingName) - handler dynamically accesses binding from env via virtual module - remove hardcoded SESSION binding name, now configurable - remove unused __env__ global - add test fixture with sessions form - sessions now fully integrated with astro environment api * fix: organize imports and formatting in cloudflare handler (#14697) * Initial plan * fix: organize imports and formatting in handler.ts Co-authored-by: matthewp <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: matthewp <[email protected]> * fix: make CloudflareConfig interface internal * fix: use AstroError for session driver resolution failures * fix: organize imports in session vite plugin * fix: move virtual.d.ts to package root --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: matthewp <[email protected]>
Changes
pnpm changeset.Testing
Docs