Skip to content

Commit fce2ac5

Browse files
authored
fix(js,ui): Conflicting ports (#7433)
1 parent 8328348 commit fce2ac5

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

.changeset/loose-trams-look.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/clerk-js/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { defineConfig, devices } from '@playwright/test';
88
// import path from 'path';
99
// dotenv.config({ path: path.resolve(__dirname, '.env') });
1010

11-
const PORT = process.env.PORT || 4001;
11+
const PORT = process.env.PORT || 4011;
1212
const baseURL = `http://localhost:${PORT}`;
1313

1414
/**

packages/clerk-js/rspack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ const devConfig = ({ mode, env }) => {
463463
template: './sandbox/template.html',
464464
inject: false,
465465
templateParameters: {
466-
uiScriptUrl: 'http://localhost:4001/npm/ui.browser.js',
466+
uiScriptUrl: 'http://localhost:4011/npm/ui.browser.js',
467467
},
468468
}),
469469
].filter(Boolean),

packages/ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
"bundlewatch:fix": "node bundlewatch-fix.mjs",
5454
"clean": "rimraf ./dist",
5555
"dev": "tsdown --watch src",
56-
"dev:origin": "rspack serve --config rspack.config.js --env devOrigin=http://localhost:${PORT:-4001}",
57-
"dev:sandbox": "rspack serve --config rspack.config.js --env devOrigin=http://localhost:4001",
56+
"dev:origin": "rspack serve --config rspack.config.js --env devOrigin=http://localhost:${PORT:-4011}",
57+
"dev:sandbox": "rspack serve --config rspack.config.js --env devOrigin=http://localhost:4011",
5858
"format": "node ../../scripts/format-package.mjs",
5959
"format:check": "node ../../scripts/format-package.mjs --check",
6060
"lint:attw": "attw --pack . --exclude-entrypoints themes/shadcn.css --profile esm-only",

packages/ui/rspack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const prodConfig = mode => {
160160
*/
161161
const devConfig = (mode, env) => {
162162
const devUrl = new URL(env.devOrigin || 'https://ui.lclclerk.com');
163-
const port = Number(new URL(env.devOrigin ?? 'http://localhost:4001').port || 4001);
163+
const port = Number(new URL(env.devOrigin ?? 'http://localhost:4011').port || 4011);
164164

165165
return merge(entryForVariant(variants.uiBrowser), common({ mode, variant: variants.uiBrowser }), {
166166
module: {

packages/ui/src/internal/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ export type {
9292
*/
9393
export const localUiForTesting = {
9494
version: PACKAGE_VERSION,
95-
url: 'http://localhost:4001/npm/ui.browser.js',
95+
url: 'http://localhost:4011/npm/ui.browser.js',
9696
} as Ui<Appearance & { newprop?: string }>;

0 commit comments

Comments
 (0)