You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
724 B
25 lines
724 B
const withLess = require('next-with-less'); |
|
|
|
module.exports = withLess({ |
|
trailingSlash: true, |
|
async rewrites() { |
|
return [ |
|
{ |
|
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: '/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. |
|
}, |
|
]; |
|
}, |
|
});
|
|
|