Skip to content

Commit

Permalink
Fix type in vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Dec 14, 2023
1 parent d392644 commit 7aaa7d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default defineConfig(async ({ command, mode }) => {
proxy: {
'/api': {
target,
rewrite: (path) => path.replace(/^\/api/, ''),
rewrite: (path: string) => path.replace(/^\/api/, ''),
changeOrigin: true,
},
},
Expand Down

0 comments on commit 7aaa7d8

Please sign in to comment.