8000 Move dependencies into `updateContentCommand` and wait for `onCreateC… · github/codespaces-react@51a0283 · GitHub
[go: up one dir, main page]

Skip to content

Commit 51a0283

Browse files
authored
Move dependencies into updateContentCommand and wait for onCreateCommand
This lets us connect sooner if we don't have a prebuild
1 parent c2c09b3 commit 51a0283

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.devcontainer/devcontainer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"hostRequirements": {"cpus": 4},
3-
4-
"onCreateCommand": "npm install && npm run build",
3+
4+
"waitFor": "onCreateCommand",
5+
"updateContentCommand": "npm install",
56
"postCreateCommand": "",
6-
7+
"postAttachCommand": {
8+
"server": "npm start",
9+
},
10+
711
"customizations": {
812
"codespaces": {
913
"openFiles": ["src/App.js"]
1014
}
1115
},
12-
13-
"postAttachCommand": {
14-
"server": "npm start",
15-
},
1616

1717
"portsAttributes": {
1818
"3000": {

0 commit comments

Comments
 (0)
0