Files
homelab-optimized/dashboard/ui/next.config.ts
Gitea Mirror Bot febaf56ba4
Some checks failed
Documentation / Build Docusaurus (push) Has started running
Documentation / Deploy to GitHub Pages (push) Has been cancelled
Sanitized mirror from private repository - 2026-04-16 07:12:52 UTC
2026-04-16 07:12:52 +00:00

17 lines
342 B
TypeScript

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