Skip to content

Commit

Permalink
Merge branch 'main' into vaggelis/sdk-1075-signin-retheme-part-2
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosdouvlis authored Dec 15, 2023
2 parents 175d4f5 + dd9d7da commit 576026a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/wise-scissors-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/nextjs': major
---

Use `NEXT_PUBLIC_CLERK_JS` instead of `NEXT_PUBLIC_CLERK_JS_URL` to pin a specific @clerk/clerk-js version.
2 changes: 1 addition & 1 deletion .github/workflows/preview.retheme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
cd $FULL_TMP_FOLDER
vercel build --yes --prod
env:
NEXT_PUBLIC_CLERK_JS: /clerk-js/clerk.browser.js
NEXT_PUBLIC_CLERK_JS_URL: /clerk-js/clerk.browser.js

- name: Deploy to Vercel (prebuilt)
id: vercel-deploy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
cd $FULL_TMP_FOLDER
vercel build --yes
env:
NEXT_PUBLIC_CLERK_JS: /clerk-js/clerk.browser.js
NEXT_PUBLIC_CLERK_JS_URL: /clerk-js/clerk.browser.js

- name: Deploy to Vercel (prebuilt)
id: vercel-deploy
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/src/server/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { apiUrlFromPublishableKey } from '@clerk/shared/apiUrlFromPublishableKey
import { isTruthy } from '@clerk/shared/underscore';

export const CLERK_JS_VERSION = process.env.NEXT_PUBLIC_CLERK_JS_VERSION || '';
export const CLERK_JS_URL = process.env.NEXT_PUBLIC_CLERK_JS || '';
export const CLERK_JS_URL = process.env.NEXT_PUBLIC_CLERK_JS_URL || '';
export const API_VERSION = process.env.CLERK_API_VERSION || 'v1';
export const SECRET_KEY = process.env.CLERK_SECRET_KEY || '';
export const PUBLISHABLE_KEY = process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY || '';
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/src/utils/mergeNextClerkPropsWithEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const mergeNextClerkPropsWithEnv = (props: Omit<NextClerkProviderProps, '
return {
...props,
publishableKey: props.publishableKey || process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY || '',
clerkJSUrl: props.clerkJSUrl || process.env.NEXT_PUBLIC_CLERK_JS,
clerkJSUrl: props.clerkJSUrl || process.env.NEXT_PUBLIC_CLERK_JS_URL,
clerkJSVersion: props.clerkJSVersion || process.env.NEXT_PUBLIC_CLERK_JS_VERSION,
proxyUrl: props.proxyUrl || process.env.NEXT_PUBLIC_CLERK_PROXY_URL || '',
domain: props.domain || process.env.NEXT_PUBLIC_CLERK_DOMAIN || '',
Expand Down

0 comments on commit 576026a

Please sign in to comment.