Skip to content

Commit 6395c8a

Browse files
authored
Update vite.config.ts
1 parent 362bf1e commit 6395c8a

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

artifacts/mockup-sandbox/vite.config.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ import { mockupPreviewPlugin } from "./mockupPreviewPlugin";
77

88
const rawPort = process.env.PORT;
99

10-
if (!rawPort) {
11-
throw new Error(
12-
"PORT environment variable is required but was not provided.",
13-
);
14-
}
10+
const port = Number(process.env.PORT ?? 5173);
1511

1612
const port = Number(rawPort);
1713

0 commit comments

Comments
 (0)