Skip to content

Commit

Permalink
🐞 fix: 修复获取失败的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kalicyh committed Aug 11, 2024
1 parent 2165dc6 commit 9f33c75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import vuetify from 'vite-plugin-vuetify';

// https://vitejs.dev/config/
export default defineConfig({
base: import.meta.env.VITE_PUBLIC_PATH || '/',
base: process.env.VITE_PUBLIC_PATH || '/',
server: {
proxy: {
'/api': {
target: import.meta.env.VITE_API_BASE_URL,
target: process.env.VITE_API_BASE_URL,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
Expand Down

0 comments on commit 9f33c75

Please sign in to comment.