mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
28 lines
639 B
JavaScript
28 lines
639 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const { withSentryConfig } = require('@sentry/nextjs')
|
|
const withPWA = require('next-pwa')
|
|
const VERSION = require('./package.json').version
|
|
|
|
const NextConfig = {
|
|
webpack: (config, { isServer }) => {
|
|
if (!isServer) {
|
|
config.resolve.fallback.fs = false
|
|
}
|
|
return config
|
|
},
|
|
pwa: {
|
|
disable: process.env.NODE_ENV !== 'production',
|
|
register: false
|
|
},
|
|
env: {
|
|
NEXT_PUBLIC_RELEASE_VERSION: VERSION,
|
|
SENTRY_SKIP_AUTO_RELEASE: true
|
|
},
|
|
future: {
|
|
webpack5: true,
|
|
},
|
|
experimental: {
|
|
scrollRestoration: true
|
|
}
|
|
}
|
|
module.exports = withSentryConfig(withPWA(NextConfig)) |