web/next.config.js

25 lines
615 B
JavaScript
Raw Normal View History

2023-10-19 11:44:56 +03:30
/** @type {import('next').NextConfig} */
2024-05-20 22:03:46 +03:30
const withPWA = require("@ducanh2912/next-pwa").default({
cacheOnFrontEndNav: true,
aggressiveFrontEndNavCaching: true,
reloadOnOnline: true,
swcMinify: true,
dest: "public",
fallbacks: {
//image: "/static/images/fallback.png",
document: "/offline", // if you want to fallback to a custom page rather than /_offline
// font: '/static/font/fallback.woff2',
// audio: ...,
// video: ...,
},
workboxOptions: {
disableDevLogs: true,
},
// ... other options you like
});
const nextConfig = {};
module.exports = withPWA(nextConfig);