mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-05-31 08:43:37 +00:00
Agent-Logs-Url: https://github.com/velocitatem/cvfs/sessions/1a9aa3e0-c4e1-48fb-b646-49f31c316325 Co-authored-by: velocitatem <60182044+velocitatem@users.noreply.github.com>
13 lines
372 B
TypeScript
13 lines
372 B
TypeScript
import type { NextConfig } from "next";
|
|
import path from "node:path";
|
|
|
|
const nextConfig: NextConfig = {
|
|
outputFileTracingRoot: path.join(process.cwd(), "../.."),
|
|
async rewrites() {
|
|
const backend = process.env.API_BASE_URL ?? "http://localhost:9812";
|
|
return [{ source: "/api/:path*", destination: `${backend}/api/:path*` }];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|