We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000 CPU: (10) arm64 Apple M1 Pro Memory: 32 GB Shell: /bin/zsh Package Manager Used: npm (10.2.4)
Relevant Packages: @cloudflare/next-on-pages: 1.12.0 vercel: N/A next: N/A
When you run npm run pages:deploy it reads .env.development instead of .env.production
npm run pages:deploy
.env.development
.env.production
No response
Direct Upload (wrangler pages publish or the @cloudflare/pages-action GitHub Action)
wrangler pages publish
11a54ff7-36d2-4cf7-b8ab-543510e32449
The text was updated successfully, but these errors were encountered:
I changed setup to use wrangler.toml file and instead define my environment variables there
Sorry, something went wrong.
Hi, I encountered the same issue: .env does not get processed in the Cloudflare functions.
.env
No branches or pull requests
next-on-pages environment related information
System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000
CPU: (10) arm64 Apple M1 Pro
Memory: 32 GB
Shell: /bin/zsh
Package Manager Used: npm (10.2.4)
Relevant Packages:
@cloudflare/next-on-pages: 1.12.0
vercel: N/A
next: N/A
Description
When you run
npm run pages:deploy
it reads.env.development
instead of.env.production
Reproduction
No response
Pages Deployment Method
Direct Upload (
wrangler pages publish
or the @cloudflare/pages-action GitHub Action)Pages Deployment ID
11a54ff7-36d2-4cf7-b8ab-543510e32449
Additional Information
No response
Would you like to help?
The text was updated successfully, but these errors were encountered: