Skip to content

Commit 0abc2dd

Browse files
committed
fix(config): update port configuration for web server
- Renamed PORT to WEB_PORT in playwright.config.ts for clarity. - Modified webpack.config.mjs to use WEB_PORT from environment variables, defaulting to "9080" if not set, ensuring consistent port usage across configurations.
1 parent 9d51126 commit 0abc2dd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/web/webpack.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default (env, argv) => {
7777
const POSTHOG_KEY = process.env.POSTHOG_KEY;
7878
const POSTHOG_HOST = process.env.POSTHOG_HOST;
7979
const NODE_ENV = process.env.NODE_ENV || ENVIRONMENT || "development";
80-
const PORT = "9080";
80+
const PORT = process.env.WEB_PORT || "9080";
8181

8282
if (!GOOGLE_CLIENT_ID || GOOGLE_CLIENT_ID === "undefined") {
8383
logger.error(`Oopsies, you're missing the GOOGLE_CLIENT_ID variable.

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default defineConfig({
3333
API_PORT: "3000",
3434
POSTHOG_KEY: "test-posthog-key",
3535
POSTHOG_HOST: "https://app.posthog.com",
36-
PORT: `${TEST_PORT}`,
36+
WEB_PORT: `${TEST_PORT}`,
3737
},
3838
port: TEST_PORT,
3939
reuseExistingServer: !process.env.CI,

0 commit comments

Comments
 (0)