Skip to content

Commit

Permalink
wip: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
OzakIOne committed Dec 5, 2023
1 parent 47de800 commit 7cfbec4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/docusaurus-utils/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = parseInt(process.env.PORT || '3000', 10);
export const DEFAULT_PORT = process.env.PORT
? parseInt(process.env.PORT, 10)
: 3000;

/** Default plugin ID. */
export const DEFAULT_PLUGIN_ID = 'default';
Expand Down

0 comments on commit 7cfbec4

Please sign in to comment.