Skip to content

Commit c405844

Browse files
authored
Use different ports for start-prod and start-examples (#5592)
Because the production build uses a service worker, it can be annoying to have that service worker be installed on localhost:4242 and then not see your changes when you switch to the development build. Use port 4243 for start-prod and start-l10n-prod, and use port 4244 for start-examples.
2 parents a804198 + aff9465 commit c405844

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
"license-check": "devtools-license-check",
3535
"preinstall": "node bin/pre-install.js",
3636
"publish": "rimraf public_html && cp -r dist public_html",
37-
"serve-static": "ws -d dist/ -s index.html -p 4242",
37+
"serve-static": "ws -d dist/ -s index.html -p 4243",
3838
"start": "yarn build:clean && cross-env NODE_ENV=development node server.js",
3939
"start-prod": "yarn build-prod && yarn serve-static",
4040
"start-l10n": "yarn build:clean && cross-env NODE_ENV=development L10N=1 node server.js",
4141
"start-l10n-prod": "yarn build-l10n-prod && yarn serve-static",
42-
"start-examples": "ws -d examples/ -s index.html -p 4242",
42+
"start-examples": "ws -d examples/ -s index.html -p 4244",
4343
"start-docs": "ws -d docs-user/ -p 3000",
4444
"start-photon": "node res/photon/server",
4545
"test": "node bin/output-fixing-commands.js cross-env LC_ALL=C TZ=UTC NODE_ENV=test jest",

0 commit comments

Comments
 (0)