frontend/next.config.js (view raw)
1const withPWA = require('next-pwa');
2const {withSentryConfig} = require('@sentry/nextjs');
3const {NODE_ENV} = process.env;
4
5const moduleExports = withPWA({
6 pwa: {
7 dest: 'public',
8 disable: NODE_ENV !== 'production',
9 },
10 eslint: {
11 ignoreDuringBuilds: true,
12 },
13 typescript: {
14 ignoreBuildErrors: true,
15 },
16});
17
18const SentryWebpackPluginOptions = {
19 // For all available options, see:
20 // https://github.com/getsentry/sentry-webpack-plugin#options.
21 silent: true,
22};
23
24module.exports = withSentryConfig(moduleExports, SentryWebpackPluginOptions);