You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Astro adapter doesn't work when deploying to cloudflare workers.
Serverless environments like Cloudflare workers have no risk of cross request problems. Async Local Storage, which is used to avoid cross request bugs in the Astro adapter, is not needed in those environments and also not available.
Proposal
Add an option to disable AsyncLocalStorage similar to the SvelteKit adapter #163 (comment).
Tasks
add option in the paraglide astro integration disableAsyncLocalStorage
Context
The Astro adapter doesn't work when deploying to cloudflare workers.
Serverless environments like Cloudflare workers have no risk of cross request problems. Async Local Storage, which is used to avoid cross request bugs in the Astro adapter, is not needed in those environments and also not available.
Proposal
Add an option to disable AsyncLocalStorage similar to the SvelteKit adapter #163 (comment).
Tasks
disableAsyncLocalStorage
integrations: [ paraglide({ // recommended settings project: "./project.inlang", outdir: "./src/paraglide", + disableAsyncLocalStorage: true }), ],
middleware-no-async-local-storage
similar to https://github.com/opral/monorepo/blob/39c013d01e6134fc5ad07818949e260fc815abba/inlang/source-code/paraglide/paraglide-astro/src/middleware.ts#L1-L82 but without relying on async local storageconfig.disableAsyncLocalStorage
in integration.ts to resolve the middlewareThe text was updated successfully, but these errors were encountered: