2022-04-18 07:32:57 +02:00
|
|
|
const withLess = require('next-with-less');
|
|
|
|
|
|
|
|
module.exports = withLess({
|
2020-11-09 21:06:28 +01:00
|
|
|
trailingSlash: true,
|
2022-10-27 07:45:13 +02:00
|
|
|
reactStrictMode: true,
|
2022-05-18 06:20:27 +02:00
|
|
|
webpack(config) {
|
|
|
|
config.module.rules.push({
|
|
|
|
test: /\.svg$/i,
|
|
|
|
issuer: /\.[jt]sx?$/,
|
|
|
|
use: ['@svgr/webpack'],
|
|
|
|
});
|
|
|
|
|
|
|
|
return config;
|
|
|
|
},
|
2022-05-09 08:28:54 +02:00
|
|
|
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*',
|
2022-05-27 03:59:16 +02:00
|
|
|
destination: 'http://localhost:8080/img/:path*', // Proxy to Backend to work around CORS.
|
2022-05-17 06:44:09 +02:00
|
|
|
},
|
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.
|
|
|
|
},
|
2022-05-09 08:28:54 +02:00
|
|
|
];
|
|
|
|
},
|
2022-09-09 06:43:32 +02:00
|
|
|
pageExtensions: ['tsx'],
|
2022-04-18 07:32:57 +02:00
|
|
|
});
|