Commit Graph

5 Commits

Author SHA1 Message Date
NIJAT
a97779fa3b 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
2025-12-29 18:40:07 +04:00
NIJAT
9930abd991 fix: support both static export (CF Pages) and standalone (Docker) builds
- next.config.ts now checks STATIC_EXPORT env var to toggle output mode
- Added pages:build script for Cloudflare Pages to use
- Docker uses default 'npm run build' which creates .next/standalone
- CF Pages should use 'npm run pages:build' which creates out/
2025-12-29 18:34:48 +04:00
NIJAT
ae1448fe48 fix: build config for dual Docker/Cloudflare support
- next.config.ts: Auto-detects Cloudflare Pages (CF_PAGES) to use 'export', defaults to 'standalone' for Docker
- wrangler.json: Removed invalid binding for static deploy
- package.json: Added build:static script
2025-12-29 12:53:45 +04:00
NIJAT
0eae8240c7 feat: security fixes, loading skeleton, script refactor 2025-12-28 17:29:39 +04:00
NIJAT
45ec702e74 Initial Commit 2025-12-24 07:37:01 +04:00