diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6be8840971c..4533b9f1567 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,6 +3,23 @@ "dockerComposeFile": "docker-compose.yml", "service": "devcontainer", "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", - // "features": {}, - "forwardPorts": [3000, 8000] + "forwardPorts": [3000, 8000], + "portsAttributes": { + "3000": { + "label": "API", + "onAutoForward": "silent" + }, + "8000": { + "label": "Client", + "onAutoForward": "notify" + } + }, + "otherPortsAttributes": { + "onAutoForward": "silent" + }, + "onCreateCommand": "[ ! -f .env ] && cp sample.env .env || true", + "updateContentCommand": "pnpm install && pnpm seed", + "postAttachCommand": { + "instructions": "bash -c 'echo \"\n\n\n Start a new terminal and run \\`pnpm run develop\\` when you are ready.\n\n\n\"'" + } }