2026-05-07 12:28:42 +03:00
|
|
|
import type { NextConfig } from 'next';
|
|
|
|
|
|
|
|
|
|
const isExport = process.env.NODE_ENV === 'production';
|
2026-04-18 14:52:39 +03:00
|
|
|
|
|
|
|
|
const nextConfig: NextConfig = {
|
2026-05-07 12:28:42 +03:00
|
|
|
/* output: 'export' only applies at build time — enabling it in dev mode
|
|
|
|
|
* breaks route handlers (incompatible with force-dynamic in Next.js 16) */
|
|
|
|
|
...(isExport ? { output: 'export' } : {}),
|
2026-04-18 15:32:01 +03:00
|
|
|
images: { unoptimized: true },
|
2026-05-07 12:28:42 +03:00
|
|
|
};
|
2026-04-18 14:52:39 +03:00
|
|
|
|
2026-05-07 12:28:42 +03:00
|
|
|
export default nextConfig;
|