Skip to content

Commit

Permalink
fix env port variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AykhanAhmadli committed Oct 24, 2024
1 parent 288b192 commit 5c6d522
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/telemed-ehr/app/env/.env.local-template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PORT=4002
VITE_APP_PORT=4002
VITE_APP_IS_LOCAL=true
VITE_APP_ZAPEHR_APPLICATION_CLIENT_ID=
VITE_APP_ZAPEHR_APPLICATION_DOMAIN=https://auth.zapehr.com
Expand Down
2 changes: 1 addition & 1 deletion packages/telemed-ehr/app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default ({ mode }) => {
plugins: [react(), viteTsconfigPaths(), svgr()],
server: {
open: true,
port: env.PORT ? parseInt(env.PORT) : undefined,
port: env.VITE_APP_PORT ? parseInt(env.VITE_APP_PORT) : undefined,
},
build: {
outDir: './build',
Expand Down
2 changes: 1 addition & 1 deletion packages/telemed-intake/app/env/.env.local-template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PORT=3002
VITE_APP_PORT=3002
VITE_APP_IS_LOCAL=true
VITE_APP_CLIENT_ID=
VITE_APP_AUTH0_AUDIENCE='https://api.zapehr.com'
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default ({ mode }) => {
plugins: [react(), viteTsconfigPaths(), svgr()],
server: {
open: true,
port: env.PORT ? parseInt(env.PORT) : undefined,
port: env.VITE_APP_PORT ? parseInt(env.VITE_APP_PORT) : undefined,
},
optimizeDeps: {
exclude: ['js-big-decimal', 'jsonpath-plus'],
Expand Down

0 comments on commit 5c6d522

Please sign in to comment.