all repos — caroster @ 3787acb16a60cda9229889e76c928f5f6af4f047

[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'} = 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  },
17  eslint: {
18    ignoreDuringBuilds: true,
19  },
20  typescript: {
21    ignoreBuildErrors: true,
22  },
23});
24
25const SentryWebpackPluginOptions = {
26  // For all available options, see:
27  // https://github.com/getsentry/sentry-webpack-plugin#options.
28};
29
30module.exports = withSentryConfig(moduleExports, SentryWebpackPluginOptions);