We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a83baa7 commit 6fe3b59Copy full SHA for 6fe3b59
examples/vite.config.ts
@@ -53,7 +53,7 @@ export default defineConfig(async ({ command, mode }) => {
53
proxy: {
54
'/api': {
55
target,
56
- rewrite: (path) => path.replace(/^\/api/, ''),
+ rewrite: (path: string) => path.replace(/^\/api/, ''),
57
changeOrigin: true,
58
},
59
0 commit comments