Skip to content

Commit

Permalink
refactor: dynamic proxy base url
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Guillemin committed Oct 18, 2023
1 parent 0abc25c commit 3c161f2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ export default ({ mode }) => {
server: {
port: 3000,
proxy: {
'/publisher/api': process.env.VITE_PROXY_URL,
'/publisher/management': process.env.VITE_PROXY_URL,
'/publisher/api-docs': process.env.VITE_PROXY_URL,
'/publisher/published': process.env.VITE_PROXY_URL,
'/publisher/feed': process.env.VITE_PROXY_URL,
'/publisher/app': process.env.VITE_PROXY_URL,
'/publisher/files': process.env.VITE_PROXY_URL,
'/publisher/view': process.env.VITE_PROXY_URL,
'^(?:/[^/]*)?/api': process.env.VITE_PROXY_URL,
'^(?:/[^/]*)?/management': process.env.VITE_PROXY_URL,
'^(?:/[^/]*)?/api-docs': process.env.VITE_PROXY_URL,
'^(?:/[^/]*)?/published': process.env.VITE_PROXY_URL,
'^(?:/[^/]*)?/feed': process.env.VITE_PROXY_URL,
'^(?:/[^/]*)?/app': process.env.VITE_PROXY_URL,
'^(?:/[^/]*)?/files': process.env.VITE_PROXY_URL,
'^(?:/[^/]*)?/view': process.env.VITE_PROXY_URL,
},
},
});
Expand Down

0 comments on commit 3c161f2

Please sign in to comment.