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-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-04-18 07:32:57 +02:00
|
|
|
});
|