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