26 lines
644 B
TypeScript
26 lines
644 B
TypeScript
// next.config.ts
|
||
import type { NextConfig } from "next";
|
||
import createNextIntlPlugin from "next-intl/plugin";
|
||
|
||
// @ts-ignore – no types for next-pwa
|
||
const withPWA = require("next-pwa")({
|
||
dest: "public",
|
||
disable: process.env.NODE_ENV === "development",
|
||
register: true,
|
||
skipWaiting: true,
|
||
navigateFallback: "/offline.html", // fallback page
|
||
});
|
||
|
||
const withNextIntl = createNextIntlPlugin();
|
||
|
||
const nextConfig: NextConfig = {
|
||
// output : "standalone",
|
||
images: {
|
||
remotePatterns: [],
|
||
},
|
||
};
|
||
|
||
const configWithIntl = withNextIntl(nextConfig);
|
||
|
||
export default withPWA(configWithIntl);
|