-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
feat: custom public env prefix #67791
base: canary
Are you sure you want to change the base?
Conversation
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
0c7ecd5
to
08da98d
Compare
fc408a3
to
80a31a4
Compare
There may be npm libraries who expect public vars prefixed as |
What about allowing multiple prefixes? With |
Confusion begins when you ship your app built on top of Next.js, and users have no idea what |
Note
This is a proposal, wondering what you guys think about this idea
What?
Set custom public env variable prefix
Why?
Sometimes the prefix
NEXT_PUBLIC_
can be a little confusing, so a way to set a custom prefix could help improving DX?Idea from #66458, also kind of related to #56093
How?
Experimental option for a custom prefix