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