Skip to content

Commit d726bba

Browse files
committed
fix(e2e): add missing clerkJSUrl and clerkUiUrl props to templates
Added clerkJSUrl and clerkUiUrl props to integration templates that were missing them. These props are required for CI to use the locally published Clerk packages from Verdaccio instead of the default CDN. Templates updated: - react-router-library - react-router-node - tanstack-react-start
1 parent 037cb0c commit d726bba

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

integration/templates/react-router-library/src/main.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ import './index.css';
66
import App from './App.tsx';
77

88
const PUBLISHABLE_KEY = import.meta.env.VITE_CLERK_PUBLISHABLE_KEY;
9+
const CLERK_JS_URL = import.meta.env.VITE_CLERK_JS_URL;
10+
const CLERK_UI_URL = import.meta.env.VITE_CLERK_UI_URL;
911

1012
createRoot(document.getElementById('root')!).render(
1113
<StrictMode>
1214
<BrowserRouter>
1315
<ClerkProvider
1416
publishableKey={PUBLISHABLE_KEY}
17+
clerkJSUrl={CLERK_JS_URL}
18+
clerkUiUrl={CLERK_UI_URL}
1519
appearance={{
1620
options: {
1721
showOptionalFields: true,

integration/templates/react-router-node/app/root.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ export default function App({ loaderData }: Route.ComponentProps) {
3232
return (
3333
<ClerkProvider
3434
loaderData={loaderData}
35+
clerkJSUrl={import.meta.env.VITE_CLERK_JS_URL}
36+
clerkUiUrl={import.meta.env.VITE_CLERK_UI_URL}
3537
appearance={{
3638
options: {
3739
showOptionalFields: true,

integration/templates/tanstack-react-start/src/routes/__root.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ function RootComponent() {
2323
function RootDocument({ children }: { children: React.ReactNode }) {
2424
return (
2525
<ClerkProvider
26+
clerkJSUrl={import.meta.env.VITE_CLERK_JS_URL}
27+
clerkUiUrl={import.meta.env.VITE_CLERK_UI_URL}
2628
appearance={{
2729
options: {
2830
showOptionalFields: true,

0 commit comments

Comments
 (0)