Files
falah-mobile/next.config.ts
T

15 lines
369 B
TypeScript
Raw Normal View History

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