Skip to content

Commit 870d99e

Browse files
committed
Configure dev container for SvelteKit.
1 parent 3c9ea6f commit 870d99e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.devcontainer/devcontainer.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/universal:2",
3+
"hostRequirements": {
4+
"cpus": 4
5+
},
6+
"waitFor": "onCreateCommand",
7+
"updateContentCommand": "npm install",
8+
"postCreateCommand": "",
9+
"postAttachCommand": {
10+
"server": "npm run dev -- --host 0.0.0.0"
11+
},
12+
"portsAttributes": {
13+
"5173": {
14+
"label": "Application",
15+
"onAutoForward": "openPreview"
16+
}
17+
},
18+
"forwardPorts": [5173]
19+
}

0 commit comments

Comments
 (0)