From 2892ed763df6b272c71ada1fb652dc785494610b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Florkiewicz?= Date: Fri, 28 Jun 2024 08:15:12 +0000 Subject: [PATCH] add devcontainer configuration --- .devcontainer/devcontainer.json | 28 ++++++++++++++++++++++++++++ .vscode/launch.json | 21 +++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .devcontainer/devcontainer.json create mode 100644 .vscode/launch.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..f88ad49 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,28 @@ +{ + "image": "mcr.microsoft.com/devcontainers/universal:2", + "hostRequirements": { + "cpus": 4 + }, + "waitFor": "onCreateCommand", + "updateContentCommand": "npm install && npm run build", + "postCreateCommand": "", + "postAttachCommand": { + "server": "npm run dev" + }, + "customizations": { + "codespaces": { + "openFiles": [ + "pages/index.js" + ] + } + }, + + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + "forwardPorts": [3000] + } + \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..edb472d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,21 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Run application", + "type": "node", + "request": "launch", + "cwd": "${workspaceFolder}", + "console": "integratedTerminal", + "runtimeExecutable": "npm", + "runtimeArgs": [ + "run", + "dev" + ], + "skipFiles": [ + "/**" + ] + } + ] + } + \ No newline at end of file