🔧 config: 切换到生产环境 API
- 更新 API base URL 从测试环境到生产环境 - lib/api/client.ts: api-test.mixvideo.bowong.cc → api.mixvideo.bowong.cc - lib/auth/client.ts: api-test.mixvideo.bowong.cc → api.mixvideo.bowong.cc 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
93e0cfdae1
commit
fe814bd403
|
|
@ -1,6 +1,6 @@
|
||||||
import { storage } from '../storage';
|
import { storage } from '../storage';
|
||||||
|
|
||||||
const BASE_URL = 'https://api-test.mixvideo.bowong.cc';
|
const BASE_URL = 'https://api.mixvideo.bowong.cc';
|
||||||
|
|
||||||
export interface ApiRequestOptions {
|
export interface ApiRequestOptions {
|
||||||
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { usernameClient } from "better-auth/client/plugins";
|
||||||
import { createAuthClient } from "better-auth/react";
|
import { createAuthClient } from "better-auth/react";
|
||||||
import { storage } from '../storage';
|
import { storage } from '../storage';
|
||||||
export const authClient = createAuthClient({
|
export const authClient = createAuthClient({
|
||||||
baseURL: "https://api-test.mixvideo.bowong.cc/api/auth",
|
baseURL: "https://api.mixvideo.bowong.cc/api/auth",
|
||||||
fetchOptions: {
|
fetchOptions: {
|
||||||
credentials: "omit",
|
credentials: "omit",
|
||||||
auth: {
|
auth: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue