opennextjs / opennextjs-cloudflare

Open Next.js adapter for Cloudflare
https://opennext.js.org/cloudflare
MIT License
378 stars 8 forks source link

fix: draft mode env vars not available #97

Closed james-elicx closed 15 hours ago

james-elicx commented 1 month ago

Context

Draft mode tries to access certain environment variables in the edge runtime to be able to work. These variables are available in the prerender manifest and need to be injected into the worker some how.

fixes #94 (?)

Changes

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: fc118eb6fad1213a4f6c759e0788edbc5b045818

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------------- | ----- | | @opennextjs/cloudflare | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

pkg-pr-new[bot] commented 1 month ago

Open in Stackblitz

pnpm add https://pkg.pr.new/@opennextjs/cloudflare@97

commit: fc118eb