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,
|
|
|
|
|
},
|
|
|
|
|
async rewrites() {
|
|
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
source: '/api/:path*',
|
|
|
|
|
destination: `${process.env.NEXT_PUBLIC_API_URL ?? 'http://localhost:4000'}/:path*`,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default nextConfig;
|