mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-16 01:32:37 +02:00
feat(core): enable port configuration via environment variable (#9610)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
This commit is contained in:
parent
e00340331d
commit
d3752d227b
1 changed files with 3 additions and 1 deletions
|
@ -83,7 +83,9 @@ export const DEFAULT_I18N_DIR_NAME = 'i18n';
|
|||
export const CODE_TRANSLATIONS_FILE_NAME = 'code.json';
|
||||
|
||||
/** Dev server opens on this port by default. */
|
||||
export const DEFAULT_PORT = 3000;
|
||||
export const DEFAULT_PORT = process.env.PORT
|
||||
? parseInt(process.env.PORT, 10)
|
||||
: 3000;
|
||||
|
||||
/** Default plugin ID. */
|
||||
export const DEFAULT_PLUGIN_ID = 'default';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue