Skip to content

Commit 5249e79

Browse files
authored
[chore] Make dev server ports configurable via PORT env var (#2549)
1 parent 2442ef7 commit 5249e79

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/storybook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"private": true,
55
"scripts": {
6-
"start": "storybook dev -p 6006",
6+
"start": "storybook dev -p ${PORT:-6006}",
77
"start:docker": "docker-scripts start",
88
"build": "storybook build --output-dir dist",
99
"lint": "eslint . --report-unused-disable-directives --max-warnings=0",

apps/website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"postinstall": "shx cp -n .env.local.template .env.local",
7-
"start": "next dev -p 8000",
7+
"start": "next dev -p ${PORT:-8000}",
88
"start:docker": "docker-scripts start",
99
"typecheck": "tsc --noEmit",
1010
"build": "next build",

0 commit comments

Comments
 (0)