all repos — caroster @ 77a18fe2f9f1d973da32283784d93134a89a867a

[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        source: '/email-designer/:slug*',
29        destination: `${STRAPI_URL}/email-designer/:slug*`,
30      },
31    ];
32  },
33
34  pwa: {
35    dest: 'public',
36    disable: NODE_ENV !== 'production',
37  },
38  eslint: {
39    ignoreDuringBuilds: true,
40  },
41  typescript: {
42    ignoreBuildErrors: true,
43  },
44});