Skip to content

Commit 58910f7

Browse files
authored
Standardize devcontainer.json
1 parent f44907e commit 58910f7

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

.devcontainer/devcontainer.json

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
{
2-
"postAttachCommand": {
3-
"server": "npm run dev",
4-
},
5-
6-
"portsAttributes": {
7-
"3000": {
8-
"label": "Application",
9-
"onAutoForward": "openPreview"
10-
}
11-
},
12-
13-
"customizations": {
14-
"codespaces": {
15-
"openFiles": ["pages/index.js"]
16-
}
17-
},
18-
"onCreateCommand": "npm install && npm run build",
19-
"postCreateCommand": "",
20-
"hostRequirements": {"cpus": 4}
21-
}
2+
"hostRequirements": {
3+
"cpus": 4
4+
},
5+
"waitFor": "onCreateCommand",
6+
"updateContentCommand": "npm install && npm run build",
7+
"postCreateCommand": "",
8+
"postAttachCommand": {
9+
"server": "npm run dev"
10+
},
11+
"customizations": {
12+
"codespaces": {
13+
"openFiles": [
14+
"pages/index.js"
15+
]
16+
}
17+
},
18+
"portsAttributes": {
19+
"3000": {
20+
"label": "Application",
21+
"onAutoForward": "openPreview"
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)