aboutsummaryrefslogtreecommitdiff
path: root/.devcontainer/minimal/devcontainer.json
diff options
context:
space:
mode:
Diffstat (limited to '.devcontainer/minimal/devcontainer.json')
-rw-r--r--.devcontainer/minimal/devcontainer.json34
1 files changed, 34 insertions, 0 deletions
diff --git a/.devcontainer/minimal/devcontainer.json b/.devcontainer/minimal/devcontainer.json
new file mode 100644
index 000000000..1756ffd8b
--- /dev/null
+++ b/.devcontainer/minimal/devcontainer.json
@@ -0,0 +1,34 @@
+{
+ "name": "Minimal",
+ "build": {
+ "dockerfile": "../examples.Dockerfile"
+ },
+
+ "workspaceFolder": "/workspaces/astro/examples/minimal",
+
+ "portsAttributes": {
+ "4321": {
+ "label": "Application",
+ "onAutoForward": "openPreview"
+ }
+ },
+
+ "forwardPorts": [4321],
+
+ "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
+
+ "waitFor": "postCreateCommand",
+
+ "postAttachCommand": {
+ "Server": "pnpm start --host"
+ },
+
+ "customizations": {
+ "codespaces": {
+ "openFiles": ["src/pages/index.astro"]
+ },
+ "vscode": {
+ "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
+ }
+ }
+}