Skip to content

Commit

Permalink
add devcontainer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0rek committed Jul 1, 2024
1 parent 793b8b3 commit 2892ed7
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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]
}

21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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": [
"<node_internals>/**"
]
}
]
}

0 comments on commit 2892ed7

Please sign in to comment.