web/next.config.js

27 lines
637 B
JavaScript

/** @type {import('next').NextConfig} */
const withPWA = require("@ducanh2912/next-pwa").default({
cacheOnFrontEndNav: true,
aggressiveFrontEndNavCaching: true,
reloadOnOnline: true,
swcMinify: true,
dest: "public",
fallbacks: {
document: "/offline", // fallback to custom page
},
workboxOptions: {
disableDevLogs: true,
},
});
const createNextIntlPlugin = require("next-intl/plugin");
// Initialize the next-intl plugin
const withNextIntl = createNextIntlPlugin();
// Merge the configurations
const nextConfig = {};
// Export the combined configuration
module.exports = withNextIntl(withPWA(nextConfig));