Skip to content

Commit

Permalink
chore: Make vite host configurable by .env file (#2730)
Browse files Browse the repository at this point in the history
  • Loading branch information
StaNov authored Nov 28, 2024
1 parent 8b21d30 commit 25a3c06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webapp/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default defineConfig(({ mode }) => {
server: {
// this ensures that the browser opens upon server start
open: true,
host: process.env.VITE_HOST || undefined,
// this sets a default port to 3000
port: Number(process.env.VITE_PORT) || 3000,
},
Expand Down

0 comments on commit 25a3c06

Please sign in to comment.