Skip to content

Commit 499ecee

Browse files
committed
fix launch settings for https node 18 enforcement
1 parent 59cc85d commit 499ecee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"cwd": "${file}"
1010
},
1111
{
12-
"command": "npm run start-api",
12+
"command": "npm run start-swa",
1313
"name": "Run emulator",
1414
"request": "launch",
1515
"type": "node-terminal"

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
"changelog": "auto-changelog --starting-version 3.0.0 --commit-limit false --hide-credit",
1818
"eject": "react-scripts eject",
1919
"lint": "eslint \"src/**/*.js\"",
20-
"start": "react-scripts start",
20+
"start": "set HTTPS=true&&set SSL_CRT_FILE=./.vscode/cert.crt&&set SSL_KEY_FILE=./.vscode/key.key&&react-scripts start",
2121
"test": "react-scripts test",
2222
"test:cov": "npm test -- --coverage --watchAll=false",
2323
"test:debug": "react-scripts --inspect-brk test --runInBand",
24-
"start-api": "swa start --ssl --ssl-cert ./.vscode/cert.crt --ssl-key ./.vscode/key.key --swa-config-location .vscode http://localhost:3000 --api-location http://localhost:7071",
24+
"start-swa": "swa start --ssl --ssl-cert ./.vscode/cert.crt --ssl-key ./.vscode/key.key --swa-config-location .vscode https://localhost:3000 --api-location http://localhost:7071",
2525
"prepare": "husky install"
2626
},
2727
"config": {
@@ -98,7 +98,7 @@
9898
"stylelint-order": "^5.0.0"
9999
},
100100
"engines": {
101-
"node": "16",
101+
"node": "18",
102102
"npm": ">=7"
103103
}
104104
}

0 commit comments

Comments
 (0)