2026-05-07 12:28:42 +03:00
|
|
|
import type { NextConfig } from 'next';
|
|
|
|
|
|
2026-05-11 11:12:21 +03:00
|
|
|
/* output: 'export' is opt-in via STATIC_EXPORT=true.
|
|
|
|
|
* Set this in CI/deploy — not locally — so the mock API route works
|
|
|
|
|
* during development and local builds. */
|
|
|
|
|
const isExport = process.env.STATIC_EXPORT === 'true';
|
2026-04-18 14:52:39 +03:00
|
|
|
|
|
|
|
|
const nextConfig: NextConfig = {
|
2026-05-07 12:28:42 +03:00
|
|
|
...(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;
|