Files
leistungsbilanz-ts/next.config.mjs
T

23 lines
498 B
JavaScript

/** @type {import('next').NextConfig} */
const apiInternalUrl = (process.env.API_INTERNAL_URL || "http://localhost:3000").replace(/\/$/, "");
const nextConfig = {
typescript: {
tsconfigPath: "./tsconfig.next.json",
},
async rewrites() {
return [
{
source: "/api/:path*",
destination: `${apiInternalUrl}/api/:path*`,
},
{
source: "/health",
destination: `${apiInternalUrl}/health`,
},
];
},
};
export default nextConfig;