forked from jappel/leistungsbilanz-ts
29 lines
597 B
JavaScript
29 lines
597 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const apiInternalUrl = (process.env.API_INTERNAL_URL || "http://localhost:3000").replace(/\/$/, "");
|
|
|
|
const nextConfig = {
|
|
allowedDevOrigins: [
|
|
"192.168.3.13",
|
|
"docker01.int.jappel.io",
|
|
"lb.jappel.io"
|
|
],
|
|
|
|
typescript: {
|
|
tsconfigPath: "./tsconfig.next.json",
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: `${apiInternalUrl}/api/:path*`,
|
|
},
|
|
{
|
|
source: "/health",
|
|
destination: `${apiInternalUrl}/health`,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|
|
|