Skip to content

Commit

Permalink
update vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarkowsky committed Feb 22, 2024
1 parent ba05196 commit bff8580
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions react-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ export default () => {
'/api': {
target: target,
changeOrigin: true,
rewrite: (path) => {
if (path.includes('auth')) {
return path.replace(/^\/api/, '');
}
return path;
},
rewrite: (path) => path.replace(/^\/api/, '')
},
},
},
Expand Down

0 comments on commit bff8580

Please sign in to comment.