mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-05-31 08:43:37 +00:00
13 lines
377 B
TypeScript
13 lines
377 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 ?? "https://api.cv.alves.world";
|
|
return [{ source: "/api/:path*", destination: `${backend}/api/:path*` }];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|