mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-07-21 03:44:21 +00:00
feat: 添加 ts 类型
This commit is contained in:
@@ -3,7 +3,8 @@ import { defineConfig, loadEnv } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
export default defineConfig((env) => {
|
||||
const viteEnv = loadEnv(env.mode, process.cwd())
|
||||
const viteEnv = loadEnv(env.mode, process.cwd()) as unknown as ImportMetaEnv
|
||||
|
||||
return {
|
||||
resolve: {
|
||||
alias: {
|
||||
@@ -14,7 +15,7 @@ export default defineConfig((env) => {
|
||||
server: {
|
||||
port: 1002,
|
||||
host: '0.0.0.0',
|
||||
open: false,
|
||||
open: true,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: viteEnv.VITE_APP_API_BASE_URL,
|
||||
|
Reference in New Issue
Block a user