buildmymcpserver/apps/web/next.config.mjs
Marco Sadjadi f5107922a0
All checks were successful
Deploy to Production / deploy (push) Successful in 1m11s
perf(web): inline CSS + modern browserslist
- experimental.inlineCss: drop the render-blocking CSS request — the
  Tailwind bundle is inlined into the HTML head (faster FCP/LCP on mobile).
- browserslist pinned to modern engines so Next/SWC stops emitting
  polyfills for Baseline features (Array.at, Object.fromEntries, …).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 19:57:30 +02:00

22 lines
560 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
transpilePackages: ['@bmm/types'],
experimental: {
typedRoutes: false,
// 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,
},
async rewrites() {
return [
{
source: '/api/:path*',
destination: `${process.env.NEXT_PUBLIC_API_URL ?? 'http://localhost:4000'}/:path*`,
},
];
},
};
export default nextConfig;