feat: add NEXT_PUBLIC_BACKEND_BASE_URL

This commit is contained in:
Henry Li
2026-01-19 11:23:40 +08:00
parent b431567666
commit 9d18e4e12d
5 changed files with 19 additions and 10 deletions

View File

@@ -0,0 +1,5 @@
import { env } from "@/env";
export function getBackendBaseURL() {
return env.NEXT_PUBLIC_BACKEND_BASE_URL ?? "http://localhost:8000";
}