const withPWA = require('next-pwa')({ dest: 'public', register: true, skipWaiting: true, disable: process.env.NODE_ENV === 'development', // opsional }); /** @type {import('next').NextConfig} */ const nextConfig = { // konfigurasi lain jika ada async rewrites() { return [ { source: '/api/absen/:path*', // FE route destination: 'https://salma.kpk.go.id/api/absen/:path*', // BE target }, ]; }, }; module.exports = withPWA(nextConfig);