mirror of
https://github.com/frontendnetwork/vegancheck.me
synced 2024-11-10 06:24:13 +00:00
32 lines
656 B
JavaScript
32 lines
656 B
JavaScript
const million = require("million/compiler");
|
|
const withPWA = require("next-pwa")({
|
|
dest: "public",
|
|
swSrc: "service-worker.js",
|
|
});
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
let nextConfig = {
|
|
output: "standalone",
|
|
reactStrictMode: true,
|
|
productionBrowserSourceMaps: true,
|
|
i18n: {
|
|
locales: ["de", "en", "fr", "es", "pl", "cz"],
|
|
defaultLocale: "en",
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/datenschutz",
|
|
destination: "/privacy-policy",
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
const millionConfig = {
|
|
auto: { rsc: true },
|
|
};
|
|
|
|
nextConfig = million.next(nextConfig, millionConfig);
|
|
|
|
module.exports = withPWA(nextConfig);
|