core/next.config.js
Junseo Park 9a32df09e7
Release v2.1.1 (#454)
* deps: updated outdated deps

* chore: updated version to v2.1.1

* deps(next): updated next to 11.0.1

* deps: fix error on build
2021-07-15 09:06:44 +09:00

26 lines
619 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: {},
experimental: {
scrollRestoration: true
}
}
module.exports = withSentryConfig(withPWA(NextConfig))