Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spread env into process.env #58

Merged

Conversation

dario-piotrowicz
Copy link
Member

in the _worker.js template take the provided env and spread its values into the global process.env so that bindings can be accessed in the Next.js application

@changeset-bot
Copy link

changeset-bot bot commented Jan 24, 2023

🦋 Changeset detected

Latest commit: 9ef93ff

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

This PR includes changesets to release 1 package
Name Type
@cloudflare/next-on-pages Minor

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

@dario-piotrowicz dario-piotrowicz force-pushed the spread-env-into-process-env branch from 8de2e44 to 62d42d2 Compare January 25, 2023 11:58
in the _worker.js template take the provided env and
spread its values into the global process.env so that
bindings can be accessed in the Next.js application
@GregBrimble
Copy link
Member

Fixes #1

@GregBrimble GregBrimble linked an issue Jan 25, 2023 that may be closed by this pull request
@GregBrimble GregBrimble merged commit e3b1a80 into cloudflare:main Jan 25, 2023
@dario-piotrowicz dario-piotrowicz deleted the spread-env-into-process-env branch January 25, 2023 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Environment variables and bindings on env
2 participants