2026-07-02 20:54:00 +08:00
|
|
|
import type { NextConfig } from 'next'
|
|
|
|
|
import withSerwistInit from '@serwist/next'
|
|
|
|
|
|
|
|
|
|
const withSerwist = withSerwistInit({
|
|
|
|
|
swSrc: 'src/sw.ts',
|
|
|
|
|
swDest: 'public/sw.js',
|
|
|
|
|
})
|
2026-06-15 08:05:51 +01:00
|
|
|
|
|
|
|
|
const nextConfig: NextConfig = {
|
2026-07-02 20:54:00 +08:00
|
|
|
output: process.env.NETLIFY === 'true' ? undefined : 'standalone',
|
|
|
|
|
}
|
2026-06-15 08:05:51 +01:00
|
|
|
|
2026-07-02 20:54:00 +08:00
|
|
|
export default withSerwist(nextConfig)
|