2025-04-16 08:51:12 +00:00
|
|
|
// 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
|
|
|
|
|
});
|
|
|
|
|
|
2024-01-05 06:57:30 +00:00
|
|
|
/** @type {import('next').NextConfig} */
|
2024-03-08 03:28:18 +00:00
|
|
|
const nextConfig = {
|
2025-02-04 08:31:04 +00:00
|
|
|
eslint: {
|
|
|
|
|
ignoreDuringBuilds: true,
|
|
|
|
|
},
|
2025-03-14 08:45:40 +00:00
|
|
|
experimental: {
|
|
|
|
|
serverActions: true,
|
|
|
|
|
},
|
2025-02-04 08:31:04 +00:00
|
|
|
images: {
|
|
|
|
|
remotePatterns: [
|
|
|
|
|
{
|
|
|
|
|
hostname: "*",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
};
|
2024-01-05 06:57:30 +00:00
|
|
|
|
2025-04-16 08:51:12 +00:00
|
|
|
module.exports = withPWA(nextConfig);
|