Skip to content

Commit

Permalink
chore: islolate dist dir for dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 3, 2023
1 parent b8f9fd3 commit f55d0a1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// https://code.visualstudio.com/docs/devcontainers/containers
// https://containers.dev/implementors/json_reference/
{
"name": "nitro-devcontainer",
"forwardPorts": [3000],
"image": "node:18",
"features": {},
"customizations": {
Expand All @@ -16,6 +14,9 @@
]
}
},
"postStartCommand": "corepack enable && pnpm install",
"mounts": ["type=volume,target=${containerWorkspaceFolder}/node_modules"]
"postStartCommand": "corepack enable && pnpm install && pnpm build --stub",
"mounts": [
"type=volume,target=${containerWorkspaceFolder}/node_modules",
"type=volume,target=${containerWorkspaceFolder}/dist"
]
}

0 comments on commit f55d0a1

Please sign in to comment.