all repos — caroster @ a7bfa8f5714ce93223f0fe02bc58b43f37137a5d

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

frontend/next.config.js (view raw)

 1const withPWA = require('next-pwa');
 2const {STRAPI_URL = 'http://localhost:1337', NODE_ENV} = process.env;
 3
 4module.exports = withPWA({
 5  async rewrites() {
 6    return [
 7      {
 8        source: '/graphql',
 9        destination: `${STRAPI_URL}/graphql`,
10      },
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});