import createNextIntlPlugin from 'next-intl/plugin'; import type { NextConfig } from 'next'; /** Registers the cookie-based locale resolver in src/i18n/request.ts. */ const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts'); const nextConfig: NextConfig = { reactStrictMode: true, transpilePackages: ['@sport/ui'], typedRoutes: true, output: 'standalone', images: { remotePatterns: [ { protocol: 'http', hostname: 'localhost', port: '9000' }, { protocol: 'https', hostname: '**.r2.dev' }, { protocol: 'https', hostname: 'cdn.sport-store.local' }, ], }, // The admin is an internal tool: keep it out of every index, permanently. async headers() { return [ { source: '/:path*', headers: [ { key: 'X-Robots-Tag', value: 'noindex, nofollow' }, { key: 'Referrer-Policy', value: 'same-origin' }, ], }, ]; }, }; export default withNextIntl(nextConfig);