2026-05-19 00:30:20 +02:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
|
const nextConfig = {
|
|
|
|
|
reactStrictMode: true,
|
2026-05-19 00:35:27 +02:00
|
|
|
transpilePackages: ['@bmm/types'],
|
2026-05-19 00:30:20 +02:00
|
|
|
experimental: {
|
|
|
|
|
typedRoutes: false,
|
2026-05-21 19:57:30 +02:00
|
|
|
// Inline the CSS into the HTML <head> so it is not a render-blocking
|
|
|
|
|
// request — improves FCP/LCP, especially on slow mobile connections.
|
|
|
|
|
inlineCss: true,
|
2026-05-19 00:30:20 +02:00
|
|
|
},
|
|
|
|
|
async rewrites() {
|
|
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
source: '/api/:path*',
|
|
|
|
|
destination: `${process.env.NEXT_PUBLIC_API_URL ?? 'http://localhost:4000'}/:path*`,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default nextConfig;
|