From 6a7c551dce4f589063491db664d1581f5decb5cb Mon Sep 17 00:00:00 2001 From: Antoine BERNIER Date: Sun, 7 Jul 2024 18:10:49 +0200 Subject: [PATCH] devcontainer --- .devcontainer/devcontainer.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..89095afc6 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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] +}