-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: load internal environment variables in Envelope (#5429)
* fix: inject `NETLIFY_DEV` env var in the process * refactor: add internal env vars to envelope method * chore: update site names in tests
- Loading branch information
1 parent
b0a6c85
commit 70ef88c
Showing
4 changed files
with
140 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const process = require('process') | ||
|
||
const { startExternalServer } = require('./external-server.cjs') | ||
|
||
const port = Number.parseInt(process.argv[2]) | ||
|
||
if (Number.isNaN(port)) { | ||
throw new TypeError(`Invalid port`) | ||
} | ||
|
||
console.log('Running external server on port', port, process.env.NETLIFY_DEV) | ||
|
||
startExternalServer({ port }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70ef88c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📊 Benchmark results