frontend/next.config.js (view raw)
1const withPWA = require('next-pwa');
2const {STRAPI_URL = 'http://localhost:1337'} = process.env;
3
4module.exports = withPWA({
5 async rewrites() {
6 return [
7 {
8 source: '/graphql',
9 destination: `${STRAPI_URL}/graphql`,
10 },
11 ];
12 },
13 pwa: {
14 dest: 'public',
15 },
16 eslint: {
17 ignoreDuringBuilds: true,
18 },
19 typescript: {
20 ignoreBuildErrors: true,
21 },
22});