tldraw/next.config.js

21 lines
422 B
JavaScript
Raw Normal View History

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