all repos — caroster @ 1b27f87d317fe2a90cceb3da3943ea4b18ff9676

[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        source: '/api/:slug*',
13        destination: `${STRAPI_URL}/api/:slug*`,
14      },
15    ];
16  },
17
18  pwa: {
19    dest: 'public',
20    disable: NODE_ENV !== 'production',
21  },
22  eslint: {
23    ignoreDuringBuilds: true,
24  },
25  typescript: {
26    ignoreBuildErrors: true,
27  },
28});