Skip to content

Commit

Permalink
load api url from envs
Browse files Browse the repository at this point in the history
  • Loading branch information
medyo committed Jul 23, 2023
1 parent 6b8e3e0 commit 5d0fd1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineConfig(({ mode }) => {
open: true,
proxy: {
'/api': {
target: 'https://api.hackertab.dev',
target: env.VITE_API_URL,
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/api/, ''),
Expand Down

0 comments on commit 5d0fd1d

Please sign in to comment.