Skip to content

Commit

Permalink
🔧 Add cwe proxy to vite
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Valen committed Jan 9, 2025
1 parent 20eb135 commit 2fb3400
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ export default defineConfig(({ mode }) => ({
},
server: {
https: true,
proxy: {
'/proxy/mitre': {
target: 'https://cwe-api.mitre.org/api/v1',
changeOrigin: true,
rewrite: path => path.replace(/^\/proxy\/mitre/, ''),
},
},
},
resolve: {
alias: {
Expand Down

0 comments on commit 2fb3400

Please sign in to comment.