diff --git a/.changeset/odd-pumpkins-sleep.md b/.changeset/odd-pumpkins-sleep.md new file mode 100644 index 000000000..e20c2f874 --- /dev/null +++ b/.changeset/odd-pumpkins-sleep.md @@ -0,0 +1,5 @@ +--- +'@cloudflare/next-on-pages': patch +--- + +fix variables not getting recorded correctly in `next-dev` diff --git a/internal-packages/next-dev/src/index.ts b/internal-packages/next-dev/src/index.ts index 05bdf6fe3..64d46e8f3 100644 --- a/internal-packages/next-dev/src/index.ts +++ b/internal-packages/next-dev/src/index.ts @@ -236,7 +236,7 @@ async function getMiniflareBindingOptions( if (bindingDetails.type === 'var') { return { ...allBindings, - bindings: { + varBindings: { ...allBindings.varBindings, [bindingName]: JSON.stringify(bindingDetails.value), },