vegancheck.me/next.config.js
Philip 7328408e0f feat: Pack Next-PWA by @DuCanhGH
Co-Authored-By: Ngô Đức Anh <75556609+ducanhgh@users.noreply.github.com>
2023-10-31 20:16:40 +01:00

32 lines
676 B
JavaScript

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,
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);