You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

next.config.js 770B

123456789101112131415161718192021222324252627
  1. const withPWA = require('next-pwa')
  2. const { withSentryConfig } = require('@sentry/nextjs')
  3. const SentryWebpackPluginOptions = {
  4. // Additional config options for the Sentry Webpack plugin. Keep in mind that
  5. // the following options are set automatically, and overriding them is not
  6. // recommended:
  7. // release, url, org, project, authToken, configFile, stripPrefix,
  8. // urlPrefix, include, ignore
  9. // For all available options, see:
  10. // https://github.com/getsentry/sentry-webpack-plugin#options.
  11. silent: true,
  12. }
  13. module.exports = withSentryConfig(
  14. withPWA({
  15. future: {
  16. webpack5: true,
  17. },
  18. pwa: {
  19. dest: 'public',
  20. scope: '/',
  21. disable: process.env.NODE_ENV === 'development',
  22. },
  23. }),
  24. SentryWebpackPluginOptions
  25. )