選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

next.config.js 422B

1234567891011121314151617181920
  1. const withPWA = require('next-pwa')
  2. const { withSentryConfig } = require('@sentry/nextjs')
  3. const SentryWebpackPluginOptions = {
  4. silent: process.env.NODE_ENV === 'development',
  5. }
  6. module.exports = withSentryConfig(
  7. withPWA({
  8. future: {
  9. webpack5: true,
  10. },
  11. pwa: {
  12. dest: 'public',
  13. scope: '/',
  14. disable: process.env.NODE_ENV === 'development',
  15. },
  16. }),
  17. SentryWebpackPluginOptions
  18. )