core/next.config.js
2021-05-16 22:58:21 +09:00

20 lines
443 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
module.exports = withSentryConfig(withPWA({
pwa: {
dest: 'public'
},
env: {
NEXT_PUBLIC_RELEASE_VERSION: VERSION,
SENTRY_SKIP_AUTO_RELEASE: true
},
future: {
webpack5: true,
},
experimental: {
scrollRestoration: true
}
}), {})