Compiled build inlines PORT environment variable
See original GitHub issueDue to how getClientEnvironment is written, PORT environment variable is being inlined into final build instead of being kept as process.env.PORT.
This will cause Razzle to fail launching on Heroku using start:prod
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Passing environment-dependent variables in webpack
There are two basic ways to achieve this. DefinePlugin. new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify(process.env.
Read more >Environment Variables - webpack
Webpack CLI offers some built-in environment variables which you can access inside a webpack configuration. Edit this page·Print this page. « Previous.
Read more >Env Variables - AFLplusplus
This document discusses the environment variables used by AFL++ to expose ... The compile-time tools do not accept AFL-specific command-line options.
Read more >Environment Variables in Apache
First, there are the environment variables controlled by the underlying operating system. These are set before the server starts. They can be used...
Read more >Configuration · Cloudflare Workers docs
Specifies how wrangler build will build your project. ... The vars key defines a table of environment variables provided to your Worker ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I found a pretty simple workaround to this issue, if people are still struggling with it
This is my workaround for Heroku: