3 Star 9 Fork 4

Ryan / chatgpt-ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.ts 626 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ryan 提交于 2023-11-19 19:15 . add translator and fix error by Ed Burnette
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
host: '0.0.0.0',
port: process.env.PORT ? Number(process.env.PORT) : 1003,
open: false,
proxy: {
'/file': {
target: 'http://localhost:8080',
changeOrigin: true, // Allow cross-origin requests
rewrite: path => path.replace('/file/', '/'),
},
},
}
})
NodeJS
1
https://gitee.com/supertinys_ryan/chatgpt-ui.git
git@gitee.com:supertinys_ryan/chatgpt-ui.git
supertinys_ryan
chatgpt-ui
chatgpt-ui
master

搜索帮助