|
|
@ -52,32 +52,34 @@ module.exports = withPWA( |
|
|
|
return config; |
|
|
|
return config; |
|
|
|
}, |
|
|
|
}, |
|
|
|
async rewrites() { |
|
|
|
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.
|
|
|
|
source: '/api/:path*', |
|
|
|
}, |
|
|
|
destination: 'http://localhost:8080/api/:path*', // Proxy to Backend to work around CORS.
|
|
|
|
{ |
|
|
|
}, |
|
|
|
source: '/hls/:path*', |
|
|
|
{ |
|
|
|
destination: 'http://localhost:8080/hls/:path*', // Proxy to Backend to work around CORS.
|
|
|
|
source: '/hls/:path*', |
|
|
|
}, |
|
|
|
destination: 'http://localhost:8080/hls/:path*', // Proxy to Backend to work around CORS.
|
|
|
|
{ |
|
|
|
}, |
|
|
|
source: '/img/:path*', |
|
|
|
{ |
|
|
|
destination: 'http://localhost:8080/img/:path*', // Proxy to Backend to work around CORS.
|
|
|
|
source: '/img/:path*', |
|
|
|
}, |
|
|
|
destination: 'http://localhost:8080/img/:path*', // Proxy to Backend to work around CORS.
|
|
|
|
{ |
|
|
|
}, |
|
|
|
source: '/logo', |
|
|
|
{ |
|
|
|
destination: 'http://localhost:8080/logo', // Proxy to Backend to work around CORS.
|
|
|
|
source: '/logo', |
|
|
|
}, |
|
|
|
destination: 'http://localhost:8080/logo', // Proxy to Backend to work around CORS.
|
|
|
|
{ |
|
|
|
}, |
|
|
|
source: '/thumbnail.jpg', |
|
|
|
{ |
|
|
|
destination: 'http://localhost:8080/thumbnail.jpg', // Proxy to Backend to work around CORS.
|
|
|
|
source: '/thumbnail.jpg', |
|
|
|
}, |
|
|
|
destination: 'http://localhost:8080/thumbnail.jpg', // Proxy to Backend to work around CORS.
|
|
|
|
{ |
|
|
|
}, |
|
|
|
source: '/customjavascript', |
|
|
|
{ |
|
|
|
destination: 'http://localhost:8080/customjavascript', // Proxy to Backend to work around CORS.
|
|
|
|
source: '/customjavascript', |
|
|
|
}, |
|
|
|
destination: 'http://localhost:8080/customjavascript', // Proxy to Backend to work around CORS.
|
|
|
|
]; |
|
|
|
}, |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
: null; |
|
|
|
}, |
|
|
|
}, |
|
|
|
pageExtensions: ['tsx'], |
|
|
|
pageExtensions: ['tsx'], |
|
|
|
}), |
|
|
|
}), |
|
|
|