Skip to content

Commit c9635c9

Browse files
committed
configure vite port for preview - affecting health check & networking
1 parent d93f486 commit c9635c9

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

dockerRunnerProd.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/sh
22

33
cd frontend
4+
npm run build
45
( npm run preview ) & SERVER_PID=$!
56

67
cd ../backend

frontend/vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export default defineConfig({
99
base: '',
1010
plugins: [react()],
1111
preview: {
12-
allowedHosts: ['.mitre.org', '.elb.us-east-1.amazonaws.com']
12+
allowedHosts: ['.mitre.org', '.elb.us-east-1.amazonaws.com'],
13+
port: parseInt(process.env.PORT!),
14+
host: true,
1315
},
1416
define: {
1517
'process.env': process.env

0 commit comments

Comments
 (0)