all repos — caroster @ a69dc08b4f89eca3499b1321ae3077f0846ae591

[Octree] Group carpool to your event https://caroster.io

frontend/next.config.js (view raw)

 1const withPWA = require('next-pwa');
 2const {withSentryConfig} = require('@sentry/nextjs');
 3const {STRAPI_URL = 'http://localhost:1337', NODE_ENV} = process.env;
 4
 5const moduleExports = withPWA({
 6  async rewrites() {
 7    return [
 8      {
 9        source: '/graphql',
10        destination: `${STRAPI_URL}/graphql`,
11      },
12    ];
13  },
14  pwa: {
15    dest: 'public',
16    disable: NODE_ENV !== 'production',
17  },
18  eslint: {
19    ignoreDuringBuilds: true,
20  },
21  typescript: {
22    ignoreBuildErrors: true,
23  },
24});
25
26const SentryWebpackPluginOptions = {
27  // For all available options, see:
28  // https://github.com/getsentry/sentry-webpack-plugin#options.
29  silent: true,
30};
31
32module.exports = withSentryConfig(moduleExports, SentryWebpackPluginOptions);