fix(tools): improve devcontainer experience (#62395)

This commit is contained in:
Mrugesh Mohapatra
2025-09-28 10:48:11 +05:30
committed by GitHub
parent 51d65b7941
commit 457123d966

View File

@@ -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\"'"
}
}