Files
tuxmate-abusoww/next.config.ts
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

11 lines
234 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: (process.env.STATIC_EXPORT || process.env.CF_PAGES) ? 'export' : 'standalone',
images: {
unoptimized: true,
},
};
export default nextConfig;