diff --git a/biome.json b/biome.json index 79ec14a..1a8e07d 100644 --- a/biome.json +++ b/biome.json @@ -7,7 +7,7 @@ }, "files": { "ignoreUnknown": false, - "includes": ["src/**/*", "app/**/*"] + "includes": ["src/**/*", "app/**/*", "*.ts", "*.tsx", "*.js", "*.jsx"] }, "formatter": { "enabled": true, diff --git a/next.config.ts b/next.config.ts index c431910..31d6a9f 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,8 +1,12 @@ -import type { NextConfig } from 'next' +import type { NextConfig } from 'next'; + +const isExport = process.env.NODE_ENV === 'production'; const nextConfig: NextConfig = { - output: 'export', + /* 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' } : {}), images: { unoptimized: true }, -} +}; -export default nextConfig +export default nextConfig;