fix: correct devcontainer workspace path mismatch

Volume was mounting ./backend to /workspaces/backend, but devcontainer.json
pointed VS Code to /workspaces/familienarchiv — causing the broken path shown
in Remote Explorer.

Now mounts the full project root to /workspaces/familienarchiv, which matches
the workspaceFolder variable. Also gives container access to frontend/ for
running npm run generate:api without leaving the devcontainer.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-03-15 13:44:06 +01:00
parent d76248cffd
commit 0cb8812692
2 changed files with 3 additions and 3 deletions

View File

@@ -14,8 +14,8 @@
"installGradle": "false" "installGradle": "false"
}, },
"ghcr.io/devcontainers/features/node:1": { "ghcr.io/devcontainers/features/node:1": {
"version": "24" "version": "24"
} }
}, },
// VS Code Extensions, die automatisch im Container installiert werden // VS Code Extensions, die automatisch im Container installiert werden

View File

@@ -67,7 +67,7 @@ services:
command: sleep infinity command: sleep infinity
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./backend:/workspaces/backend:cached - .:/workspaces/familienarchiv:cached
- ./import-data:/import # Mappt den lokalen Ordner "import-data" auf "/import" im Container - ./import-data:/import # Mappt den lokalen Ordner "import-data" auf "/import" im Container
depends_on: depends_on:
db: db: