2022-04-17 22:32:57 -07:00
|
|
|
const withLess = require('next-with-less');
|
|
|
|
|
|
|
|
module.exports = withLess({
|
2020-11-09 12:06:28 -08:00
|
|
|
trailingSlash: true,
|
2022-05-08 23:28:54 -07:00
|
|
|
async rewrites() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/api/:path*',
|
|
|
|
destination: 'http://localhost:8080/api/:path*', // Proxy to Backend to work around CORS.
|
|
|
|
},
|
2022-05-10 15:36:09 -07:00
|
|
|
{
|
|
|
|
source: '/hls/:path*',
|
|
|
|
destination: 'http://localhost:8080/hls/:path*', // Proxy to Backend to work around CORS.
|
|
|
|
},
|
2022-05-16 21:44:09 -07:00
|
|
|
{
|
|
|
|
source: '/img/:path*',
|
|
|
|
destination: 'http://localhost:8080/hls/:path*', // Proxy to Backend to work around CORS.
|
|
|
|
},
|
2022-05-10 15:36:09 -07:00
|
|
|
{
|
|
|
|
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.
|
|
|
|
},
|
2022-05-08 23:28:54 -07:00
|
|
|
];
|
|
|
|
},
|
2022-04-17 22:32:57 -07:00
|
|
|
});
|