Skip to content

Commit

Permalink
bug? del undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshixmk committed Aug 31, 2020
1 parent f4c3f85 commit ba129f1
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
export default {
proxy: {
'/v1': {
"/v1": {
target: `http://localhost:5000`,
changeOrigin: true,
rewrite: path => path.replace(/^\/v1/, '')
}
}
}
rewrite: (path) => path.replace(/^\/v1/, ""),
},
// bug??
"/undefined/v1": {
target: `http://localhost:5000`,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/undefined\/v1/, ""),
},
},
};

0 comments on commit ba129f1

Please sign in to comment.