Files
web_sport/apps/admin/next.config.ts
T

32 lines
759 B
TypeScript

import type { NextConfig } from 'next';
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 nextConfig;