Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 470
chore(shared,clerk-expo): Apply deprecation warnings env variables#1859
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
260b2aab032927376a58840d3d98e801bcede0ff5382fb86e38f57b873580721fbb8c61def5d5File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- | ||
| 'gatsby-plugin-clerk': patch | ||
| '@clerk/clerk-sdk-node': patch | ||
| '@clerk/nextjs': patch | ||
| '@clerk/remix': patch | ||
| '@clerk/clerk-expo': patch | ||
| --- | ||
| Warn about environment variables deprecations: | ||
| - `CLERK_API_KEY` | ||
| - `CLERK_FRONTEND_API` | ||
| - `NEXT_PUBLIC_CLERK_FRONTEND_API` | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| import { deprecated } from '@clerk/shared'; | ||
| export const API_URL = process.env.CLERK_API_URL || 'https://api.clerk.dev'; | ||
| export const API_VERSION = process.env.CLERK_API_VERSION || 'v1'; | ||
| /** | ||
| * @deprecated Use `CLERK_SECRET_KEY` instead. | ||
| */ | ||
| export const API_KEY = process.env.CLERK_API_KEY || ''; | ||
| if (API_KEY) { | ||
| deprecated('CLERK_API_KEY', 'Use `CLERK_SECRET_KEY` environment variable instead.'); | ||
| } | ||
| export const SECRET_KEY = process.env.CLERK_SECRET_KEY || ''; | ||
| /** | ||
| * @deprecated Use `PUBLISHABLE_KEY` instead. | ||
| */ | ||
| export const FRONTEND_API = process.env.GATSBY_CLERK_FRONTEND_API || ''; | ||
| if (FRONTEND_API) { | ||
| deprecated('FRONTEND_API', 'Use `PUBLISHABLE_KEY` environment variable instead.'); | ||
| } | ||
| export const PUBLISHABLE_KEY = process.env.GATSBY_CLERK_PUBLISHABLE_KEY || ''; | ||
| export const CLERK_JS = process.env.GATSBY_CLERK_JS; | ||
| export const PROXY_URL = process.env.GATSBY_CLERK_PROXY_URL; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,5 @@ | ||
| export * from './withServerAuth'; | ||
| export * from './clerkClient'; | ||
| // TODO(@dimkl): Exposing env variables should be dropped in favor of a | ||
| // universal config loaded. Export `constants` will be dropped in later version. | ||
| export * from '../constants'; |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.