bdematt_47724
01/08/2024, 12:12 PMnpm run pages:dev
so using wrangler. In the case of Qwik, in the console I can see the message:
Your worker has access to the following bindings:
- D1 Databases:
- DB: ...
But the context is not provided to the request handler. In the case of Svelte,
export async function post(context) {
const env = context.platform.env // This is undefined
}
The [SvelteKit docs](https://kit.svelte.dev/docs/adapter-cloudflare) do say "platform.env is only available in the final build and not in dev mode." But I'm not sure how anyone is doing development without the bindings. Just build every time I want to test?
Am I missing something? Anyone have any suggestions or workaround?bdematt_47724
01/10/2024, 6:28 PM