fix: Update Dockerfile to correctly copy Next.js 15 standalone output structure
Some checks failed
CI/CD Pipeline (Dev/Staging) / staging (push) Failing after 8m11s

This commit is contained in:
2026-01-09 03:03:33 +01:00
parent 393e8c01cd
commit de0f3f1e66
2 changed files with 11 additions and 9 deletions

View File

@@ -59,14 +59,15 @@ ls -la .next/standalone/
#### Problem: Falsche Verzeichnisstruktur
Next.js 15 könnte eine andere Struktur haben. Prüfe:
```bash
# Nach dem Build
find .next/standalone -name "server.js"
```
**✅ GELÖST**: Die Debug-Ausgabe zeigt, dass Next.js 15 die Struktur `.next/standalone/` direkt verwendet:
- `.next/standalone/server.js`
- `.next/standalone/.next/`
- `.next/standalone/node_modules/`
- `.next/standalone/package.json`
Falls `server.js` in `.next/standalone/app/server.js` ist, ist das Dockerfile korrekt.
Falls es in `.next/standalone/server.js` ist, muss das Dockerfile angepasst werden.
**NICHT**: `.next/standalone/app/server.js`
Das Dockerfile wurde korrigiert, um `.next/standalone/` direkt zu kopieren.
## Debugging