2022-08-16 00:01:54 +02:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
|
|
|
reactStrictMode: true,
|
|
|
|
swcMinify: true,
|
2022-08-17 03:04:06 +02:00
|
|
|
async rewrites() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: "/api/:path*",
|
|
|
|
destination: "http://localhost:8080/:path*", // Proxy to Backend
|
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
|
|
|
};
|
2022-08-16 00:01:54 +02:00
|
|
|
|
2022-08-17 03:04:06 +02:00
|
|
|
module.exports = nextConfig;
|