-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(nextjs,shared): Improve CLERK_API_URL default value #1955
Conversation
🦋 Changeset detectedLatest commit: 149da8b The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
a36d4a2
to
1a2021c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Shouldn't we merge to main-v4 ?
@panteliselef even though this is not a breaking change we should merge it to |
1a2021c
to
7f31f93
Compare
Not merging yet as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking this PR until unit test is added to avoid accidentally merging it.
1318b2f
to
7c56c1e
Compare
e887e97
to
a0e4b24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you add apiUrlFromPublishableKey
and constants
as individual files and to the export of the main index
file you'll need to add both here:
33ea988
to
0de2540
Compare
1526d50
to
028876c
Compare
028876c
to
ee9cdfd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted the request changes
Description
Improve the default value for CLERK_API_URL by utilizing the publishable key to differentiate between local, staging and prod environments.
We can also add this to other packages that can import the shared package.
Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change
Packages affected
@clerk/clerk-js
@clerk/clerk-react
@clerk/nextjs
@clerk/remix
@clerk/types
@clerk/themes
@clerk/localizations
@clerk/clerk-expo
@clerk/backend
@clerk/clerk-sdk-node
@clerk/shared
@clerk/fastify
@clerk/chrome-extension
gatsby-plugin-clerk
build/tooling/chore