mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
FIx default API base
This commit is contained in:
@@ -5,10 +5,6 @@ import purgecss from '@fullhuman/postcss-purgecss'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig(({ command, mode, ssrBuild }) => {
|
||||
// Load env file based on `mode` in the current working directory.
|
||||
const env = loadEnv(mode, process.cwd())
|
||||
// Set default api base url
|
||||
env.VITE_API_BASE = 'https://api.openai.com'
|
||||
// Only run PurgeCSS in production builds
|
||||
if (command === 'build') {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user