fix: use static export for both CF Pages and Docker

- Set output: 'export' in next.config.ts (creates /out directory)
- Replaced Node.js standalone Dockerfile with nginx serving static files
- Updated docker-compose.yml for nginx (port 80)
- Both CF Pages and Docker now use the same static build
This commit is contained in:
NIJAT
2025-12-29 18:40:07 +04:00
parent 9930abd991
commit a97779fa3b
4 changed files with 30 additions and 53 deletions

View File

@@ -5,8 +5,6 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"build:static": "STATIC_EXPORT=true next build",
"pages:build": "STATIC_EXPORT=true npm run build",
"start": "next start",
"lint": "eslint",
"test": "vitest run",