Skip to content

Commit

Permalink
fix: proxy config path
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiu-Jun committed Jan 6, 2024
1 parent cdca394 commit 436d61a
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 @@ -4,7 +4,7 @@
* @Author: June
* @Date: 2023-04-24 00:25:39
* @LastEditors: June
* @LastEditTime: 2024-01-06 22:03:40
* @LastEditTime: 2024-01-06 22:15:15
*/
import { defineConfig, loadEnv } from 'vite';
import vue from '@vitejs/plugin-vue';
Expand Down Expand Up @@ -150,7 +150,7 @@ const config = ({ mode }) => {
'/fontFile': {
target: 'https://github.com/',
changeOrigin: true,
rewrite: (path) => replace(/^\/fontFile/, ''),
rewrite: (path) => path.replace(/^\/fontFile/, ''),
},
},
},
Expand Down

0 comments on commit 436d61a

Please sign in to comment.