|
|
|
@ -52,7 +52,8 @@ module.exports = withPWA(
@@ -52,7 +52,8 @@ module.exports = withPWA(
|
|
|
|
|
return config; |
|
|
|
|
}, |
|
|
|
|
async rewrites() { |
|
|
|
|
return [ |
|
|
|
|
return process.env.NODE_ENV === 'development' |
|
|
|
|
? [ |
|
|
|
|
{ |
|
|
|
|
source: '/api/:path*', |
|
|
|
|
destination: 'http://localhost:8080/api/:path*', // Proxy to Backend to work around CORS.
|
|
|
|
@ -77,7 +78,8 @@ module.exports = withPWA(
@@ -77,7 +78,8 @@ module.exports = withPWA(
|
|
|
|
|
source: '/customjavascript', |
|
|
|
|
destination: 'http://localhost:8080/customjavascript', // Proxy to Backend to work around CORS.
|
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
] |
|
|
|
|
: null; |
|
|
|
|
}, |
|
|
|
|
pageExtensions: ['tsx'], |
|
|
|
|
}), |
|
|
|
|