Skip to content

Commit

Permalink
feat: add development proxy to JIMM
Browse files Browse the repository at this point in the history
  • Loading branch information
huwshimi committed Jun 5, 2024
1 parent 16a7c52 commit 1a26374
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_JIMM_API_URL=http://jimm.localhost:17070/
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ public/config.local.js
!.yarn/releases
!.yarn/sdks
!.yarn/versions

.env.local
.env.*.local
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ export default defineConfig(({ mode }) => {
server: {
host: "0.0.0.0",
port: Number(env.PORT),
proxy: {
"/auth": {
target: env.VITE_JIMM_API_URL ?? "/",
},
},
},
test: {
coverage: {
Expand Down

0 comments on commit 1a26374

Please sign in to comment.