vegancheck.me/next.config.js

33 lines
676 B
JavaScript
Raw Normal View History

const million = require("million/compiler");
const withPWA = require("@ducanh2912/next-pwa").default({
dest: "public",
swSrc: "service-worker.js",
});
/** @type {import('next').NextConfig} */
let nextConfig = {
output: "standalone",
reactStrictMode: true,
2023-02-21 09:00:21 +00:00
productionBrowserSourceMaps: true,
i18n: {
locales: ["de", "en", "fr", "es", "pl", "cz"],
defaultLocale: "en",
},
async rewrites() {
return [
{
source: "/datenschutz",
destination: "/privacy-policy",
},
];
},
};
const millionConfig = {
2023-10-19 21:18:53 +00:00
auto: { rsc: true },
};
nextConfig = million.next(nextConfig, millionConfig);
module.exports = withPWA(nextConfig);