diff --git a/.changeset/warm-weeks-stare.md b/.changeset/warm-weeks-stare.md new file mode 100644 index 000000000000..2640877e528e --- /dev/null +++ b/.changeset/warm-weeks-stare.md @@ -0,0 +1,7 @@ +--- +"create-cloudflare": patch +--- + +chore: update qwik template to use `getPlatformProxy` + +update the C3 Qwik template to use the `getPlatformProxy` utility instead of the deprecated `getBindingsProxy` one diff --git a/packages/create-cloudflare/templates/qwik/c3.ts b/packages/create-cloudflare/templates/qwik/c3.ts index 45c47dd1dfe0..dec025afa085 100644 --- a/packages/create-cloudflare/templates/qwik/c3.ts +++ b/packages/create-cloudflare/templates/qwik/c3.ts @@ -40,9 +40,9 @@ const addBindingsProxy = (ctx: C3Context) => { let env = {}; if(process.env.NODE_ENV === 'development') { - const { getBindingsProxy } = await import('wrangler'); - const { bindings } = await getBindingsProxy(); - env = bindings; + const { getPlatformProxy } = await import('wrangler'); + const platformProxy = await getPlatformProxy(); + env = platformProxy.env; } `;