2021-06-11 12:37:09 +00:00
|
|
|
const withPWA = require('next-pwa')
|
2021-06-19 16:12:48 +00:00
|
|
|
const { withSentryConfig } = require('@sentry/nextjs')
|
2021-06-11 12:37:09 +00:00
|
|
|
|
2021-06-19 16:12:48 +00:00
|
|
|
const SentryWebpackPluginOptions = {
|
|
|
|
silent: process.env.NODE_ENV === 'development',
|
|
|
|
}
|
2021-06-19 09:00:44 +00:00
|
|
|
|
2021-06-19 16:12:48 +00:00
|
|
|
module.exports = withSentryConfig(
|
|
|
|
withPWA({
|
|
|
|
future: {
|
|
|
|
webpack5: true,
|
|
|
|
},
|
|
|
|
pwa: {
|
|
|
|
dest: 'public',
|
|
|
|
scope: '/',
|
|
|
|
disable: process.env.NODE_ENV === 'development',
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
SentryWebpackPluginOptions
|
|
|
|
)
|