18 lines
355 B
TypeScript
18 lines
355 B
TypeScript
import type { NextConfig } from 'next'
|
|
import withPWA from 'next-pwa'
|
|
|
|
const isProd = process.env.NODE_ENV === 'production'
|
|
|
|
const nextConfig: NextConfig = {
|
|
reactStrictMode: true,
|
|
experimental: {},
|
|
turbopack: { root: __dirname }
|
|
}
|
|
|
|
export default withPWA({
|
|
dest: 'public',
|
|
disable: !isProd,
|
|
register: true,
|
|
skipWaiting: true
|
|
})(nextConfig)
|