diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..5c51e8ba --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,32 @@ +{ + "name": "GitHub Readme Stats Dev", + "image": "mcr.microsoft.com/devcontainers/base:ubuntu", + "features": { + "ghcr.io/devcontainers/features/node:1": { "version": "22" } + }, + "forwardPorts": [3000], + "portsAttributes": { + "3000": { "label": "HTTP" } + }, + "appPort": [], + + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "npm install -g vercel", + + // Use 'postStartCommand' to run commands after the container is started. + "postStartCommand": "hostname dev && npm install", + + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": [ + "yzhang.markdown-all-in-one", + "esbenp.prettier-vscode", + "dbaeumer.vscode-eslint" + ] + } + }, + + "remoteUser": "root", + "privileged": true +}