Add single domain gateway routing
This commit is contained in:
@@ -1 +1 @@
|
||||
VITE_API_BASE_URL=http://127.0.0.1:8100/api
|
||||
VITE_API_BASE_URL=/api
|
||||
|
||||
@@ -33,7 +33,11 @@ npm run dev
|
||||
|
||||
默认 API 地址为:
|
||||
|
||||
`http://127.0.0.1:8100/api`
|
||||
`/api`
|
||||
|
||||
统一入口访问地址为:
|
||||
|
||||
`http://127.0.0.1:8080/`
|
||||
|
||||
## 说明
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { ApiResponse, CaptchaResult, ChatMessage, ChatSession, LoginResult, UserProfile } from "../types/api";
|
||||
|
||||
const API_BASE = import.meta.env.VITE_API_BASE_URL ?? "http://127.0.0.1:8100/api";
|
||||
const API_BASE = import.meta.env.VITE_API_BASE_URL ?? "/api";
|
||||
const TOKEN_KEY = "ai-kb-user-token";
|
||||
|
||||
export function getToken() {
|
||||
|
||||
Reference in New Issue
Block a user