对devcontainer.json进行修改ia

This commit is contained in:
2025-10-26 17:08:38 +08:00
parent 68a2d0e3ab
commit 4baf03f8ae

View File

@@ -1,11 +1,6 @@
{ {
"name": "Vitepress Project", "name": "Vitepress Project",
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-18-bullseye", "image": "mcr.microsoft.com/devcontainers/javascript-node:1-18-bullseye",
"forwardPorts": [
5173
],
"postCreateCommand": "npm install && npm add -D vitepress",
"postAttachCommand": "npm run docs:dev -- --host 0.0.0.0",
"customizations": { "customizations": {
"vscode": { "vscode": {
"extensions": [ "extensions": [
@@ -17,5 +12,13 @@
"settings": {} "settings": {}
} }
}, },
"portsAttributes": {
"5173": {
"label": "Web Server",
"onAutoForward": "notify"
}
},
"postCreateCommand": "npm install && npm add -D vitepress",
"postAttachCommand": "npm run docs:dev -- --host 0.0.0.0",
"remoteUser": "node" "remoteUser": "node"
} }