import type { NextConfig } from 'next' import withSerwistInit from '@serwist/next' const withSerwist = withSerwistInit({ swSrc: 'src/sw.ts', swDest: 'public/sw.js', }) const nextConfig: NextConfig = { output: process.env.NETLIFY === 'true' ? undefined : 'standalone', } export default withSerwist(nextConfig)