devcontainer

This commit is contained in:
Antoine BERNIER 2024-07-07 18:10:49 +02:00 committed by GitHub
parent a2fde6dc7e
commit 6a7c551dce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,28 @@
{
"image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:20",
"hostRequirements": {
"memory": "8gb"
},
"waitFor": "onCreateCommand",
"updateContentCommand": "yarn",
"postCreateCommand": "",
"postAttachCommand": "yarn dev",
"customizations": {
"codespaces": {
"openFiles": ["data/blog/code-sample.mdx"]
},
"vscode": {
"settings": {
"editor.formatOnSave": true
},
"extensions": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
},
"portsAttributes": {
"3000": {
"label": "Nextjs server",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000]
}