diff --git a/next.config.ts b/next.config.ts index f66de5b..296e043 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,4 +1,5 @@ import type { NextConfig } from "next"; +import { env } from "@/lib/env"; const nextConfig: NextConfig = { output: "standalone", @@ -19,7 +20,7 @@ const nextConfig: NextConfig = { return [ { source: "/api/:path*", - destination: "http://localhost:3001/:path*", + destination: env.API_URL+"/:path*", }, ]; },