Skip to content

Commit

Permalink
fix variables not getting recorded correctly in next-dev (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz authored Jan 8, 2024
1 parent 2499cd7 commit ea73acc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/odd-pumpkins-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@cloudflare/next-on-pages': patch
---

fix variables not getting recorded correctly in `next-dev`
2 changes: 1 addition & 1 deletion internal-packages/next-dev/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ async function getMiniflareBindingOptions(
if (bindingDetails.type === 'var') {
return {
...allBindings,
bindings: {
varBindings: {
...allBindings.varBindings,
[bindingName]: JSON.stringify(bindingDetails.value),
},
Expand Down

0 comments on commit ea73acc

Please sign in to comment.