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
panteliselef
left a comment
There was a problem hiding this comment.
❓ 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 |
dimkl
left a comment
There was a problem hiding this comment.
Blocking this PR until unit test is added to avoid accidentally merging it.
1318b2f to
7c56c1e
Compare
e887e97 to
a0e4b24
Compare
LekoArts
left a comment
There was a problem hiding this comment.
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
dimkl
left a comment
There was a problem hiding this comment.
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 testruns as expected.npm run buildruns 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-extensiongatsby-plugin-clerkbuild/tooling/chore