vegancheck.me/next.config.mjs
2024-10-14 22:09:25 +02:00

33 lines
No EOL
714 B
JavaScript

import million from 'million/compiler';
import createNextIntlPlugin from 'next-intl/plugin';
const withNextIntl = createNextIntlPlugin();
/** @type {import('next').NextConfig} */
let nextConfig = {
output: "standalone",
reactStrictMode: true,
productionBrowserSourceMaps: true,
async rewrites() {
return [
{
source: "/datenschutz",
destination: "/privacy-policy",
},
{
source: "/impressum",
destination: "/en/impressum",
},
];
},
};
const millionConfig = {
auto: { rsc: true },
};
// Apply Million's optimization
nextConfig = million.next(nextConfig, millionConfig);
// Apply next-intl plugin
export default withNextIntl(nextConfig);