Skip to content

Commit

Permalink
chore(nextjs): Warn about NEXT_PUBLIC_CLERK_FRONTEND_API environment …
Browse files Browse the repository at this point in the history
…variable deprecation
  • Loading branch information
dimkl committed Sep 22, 2023
1 parent 8f86ed1 commit fc59778
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/nextjs/src/server/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ 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.NEXT_PUBLIC_CLERK_FRONTEND_API || '';
if (FRONTEND_API) {
deprecated('NEXT_PUBLIC_CLERK_FRONTEND_API', 'Use `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` environment variable instead.');
}
export const PUBLISHABLE_KEY = process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY || '';
export const DOMAIN = process.env.NEXT_PUBLIC_CLERK_DOMAIN || '';
export const PROXY_URL = process.env.NEXT_PUBLIC_CLERK_PROXY_URL || '';
Expand Down

0 comments on commit fc59778

Please sign in to comment.