对devcontainer.json进行修改ia
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user