all repos — caroster @ e46d9135aa9b183d0dda3aa91c21755852231d13

[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        source: '/admin/:slug*',
17        destination: `${STRAPI_URL}/admin/:slug*`,
18      },
19      {
20        source: '/i18n/:slug*',
21        destination: `${STRAPI_URL}/i18n/:slug*`,
22      },
23      {
24        source: '/content-manager/:slug*',
25        destination: `${STRAPI_URL}/content-manager/:slug*`,
26      },
27    ];
28  },
29
30  pwa: {
31    dest: 'public',
32    disable: NODE_ENV !== 'production',
33  },
34  eslint: {
35    ignoreDuringBuilds: true,
36  },
37  typescript: {
38    ignoreBuildErrors: true,
39  },
40});