diff --git a/src/api/client.ts b/src/api/client.ts index d394c15..97eec2c 100644 --- a/src/api/client.ts +++ b/src/api/client.ts @@ -2,7 +2,7 @@ import axios from 'axios' import { useAuthStore } from '@/stores/authStore' const apiClient = axios.create({ - baseURL: import.meta.env.VITE_API_BASE_URL || 'http://127.0.0.1:8080/api/v1', + baseURL: import.meta.env.VITE_API_BASE_URL || 'https://bbs.littlelan.cn/api/v1', timeout: 10000, headers: { 'Content-Type': 'application/json', diff --git a/tsconfig.app.json b/tsconfig.app.json index 0f3ed6a..f9667fd 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -17,7 +17,6 @@ "jsx": "react-jsx", /* Path aliases */ - "baseUrl": ".", "paths": { "@/*": ["./src/*"] }, diff --git a/vite.config.ts b/vite.config.ts index 8c2b2fd..3625d68 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -10,12 +10,5 @@ export default defineConfig({ '@': path.resolve(__dirname, './src'), }, }, - server: { - proxy: { - '/api': { - target: 'http://127.0.0.1:8080', - changeOrigin: true, - }, - }, - }, + server: {}, })