From 2f4e888a93389715342615c61ee281193e4d7d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maik=20M=C3=BCller?= <15815012+aatmmr@users.noreply.github.com> Date: Wed, 29 Nov 2023 09:58:38 +0100 Subject: [PATCH] chore: adding devcontainer config (#155) --- .devcontainer/devcontainer.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..efc180e --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,22 @@ +{ + "name": "awesome-mechanical-keyboards", + "image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu-22.04", + "containerUser": "vscode", + "postCreateCommand": "npm install", + "postStartCommand": "nohup bash -c 'npm run start -- --host 0.0.0.0 &'", + "waitFor": "postCreateCommand", + "forwardPorts": [3000], + "features": { + "node": { + "version": "20" + } + }, + "customizations": { + "codespaces": { + "openFiles": ["README.md", "CONTRIBUTING.md"] + }, + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] + } + } +}