27 lines
484 B
JavaScript
27 lines
484 B
JavaScript
// next.config.js
|
|
const withPWA = require("next-pwa")({
|
|
dest: "public",
|
|
register: true,
|
|
skipWaiting: true,
|
|
// disable: process.env.NODE_ENV === "development", // disable PWA di mode dev
|
|
});
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
experimental: {
|
|
serverActions: true,
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
hostname: "*",
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
module.exports = withPWA(nextConfig);
|