mirror of
https://github.com/abusoww/tuxmate.git
synced 2026-04-17 21:53:12 +02:00
- 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/
12 lines
305 B
TypeScript
12 lines
305 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Use 'export' for static hosting (CF Pages), 'standalone' for Docker/self-hosting
|
|
output: process.env.STATIC_EXPORT === 'true' ? 'export' : 'standalone',
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|