mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-28 00:04:47 +08:00
feat: implement MCP UIs
This commit is contained in:
12
web/src/core/api/resolve-service-url.ts
Normal file
12
web/src/core/api/resolve-service-url.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import { env } from "~/env";
|
||||
|
||||
export function resolveServiceURL(path: string) {
|
||||
let BASE_URL = env.NEXT_PUBLIC_API_URL ?? "http://localhost:8000/api/";
|
||||
if (!BASE_URL.endsWith("/")) {
|
||||
BASE_URL += "/";
|
||||
}
|
||||
return new URL(path, BASE_URL).toString();
|
||||
}
|
||||
Reference in New Issue
Block a user