Skip to content

Commit 6fe3b59

Browse files
committed
Fix type in vite config
1 parent a83baa7 commit 6fe3b59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default defineConfig(async ({ command, mode }) => {
5353
proxy: {
5454
'/api': {
5555
target,
56-
rewrite: (path) => path.replace(/^\/api/, ''),
56+
rewrite: (path: string) => path.replace(/^\/api/, ''),
5757
changeOrigin: true,
5858
},
5959
},

0 commit comments

Comments
 (0)