Skip to content

Commit cbc5fb9

Browse files
committed
https://github.com/haxtheweb/issues/issues/2027
1 parent 464bd14 commit cbc5fb9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ npm install
99
npm start
1010
```
1111

12-
Visit http://localhost:8080 if it doesn't automatically open
12+
Visit http://localhost:3000 if it doesn't automatically open

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"dev:build": "npm run build && nodemon dist/app.js",
1212
"dev": "nodemon src/app.js",
13-
"start": "open http://localhost:8080 && npm run dev HAXCMS_DISABLE_JWT_CHECKS",
13+
"start": "open http://localhost:3000 && npm run dev HAXCMS_DISABLE_JWT_CHECKS",
1414
"build": "rm -rf dist && babel src --out-dir dist --copy-files --include-dotfiles && chmod 774 dist/local.js && chmod 774 dist/app.js && chmod 774 dist/cli.js",
1515
"release": "npm run build && commit-and-tag-version && git push --follow-tags origin main && npm publish"
1616
},

src/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ app.options('*', function(req, res, next) {
5555
res.send(200);
5656
});
5757
// attempt to establish context of site vs multi-site environment
58-
const port = process.env.PORT || 8080;
58+
const port = process.env.PORT || 3000;
5959
systemStructureContext().then((site) => {
6060
// see if we have a single site context or if we need routes for multisite
6161
if (site) {

src/local.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// this runs when we are executing locally via npx
44
// this way we don't get multiple windows opening per port update
55
process.env.HAXCMS_DISABLE_JWT_CHECKS = true;
6-
const port = process.env.PORT || 8080;
6+
const port = process.env.PORT || 3000;
77
require('./app.js');
88
async function go() {
99
const openPkg = await import('open');

0 commit comments

Comments
 (0)