diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b5a8d50..e457eb1 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,11 +1,6 @@ { "name": "Vitepress Project", "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": { "vscode": { "extensions": [ @@ -17,5 +12,13 @@ "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" } \ No newline at end of file