Skip to content

Commit

Permalink
Using PORT as env in workbench app (#168)
Browse files Browse the repository at this point in the history
This PR addresses #167 

Update server configuration to use 'localhost' as the host and
dynamically assign the port number
  • Loading branch information
tommasodotNET authored Oct 25, 2024
1 parent eec21a5 commit 8e0bbf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workbench-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default defineConfig({
server: {
https: true,
host: '127.0.0.1',
port: 4000,
port: JSON.parse(process.env.PORT || '4000'),
},
build: {
outDir: 'build',
Expand Down

0 comments on commit 8e0bbf0

Please sign in to comment.