owncast/web/next.config.js

30 lines
870 B
JavaScript
Raw Normal View History

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