Files
2025-12-27 13:46:12 -06:00

19 lines
361 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
async rewrites() {
const kratosUrl =
process.env.KRATOS_PUBLIC_URL || "http://localhost:4433";
return [
{
source: "/api/kratos/:path*",
destination: `${kratosUrl}/:path*`,
},
];
},
};
export default nextConfig;