Skip to content

Commit

Permalink
chore(fastify): Warn about CLERK_FRONTEND_API environment variable de…
Browse files Browse the repository at this point in the history
…precation
  • Loading branch information
dimkl committed Sep 22, 2023
1 parent 76f9f61 commit e613c04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-ducks-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/fastify': patch
---

Warn about deprecated constants that will be removed in next major version
3 changes: 3 additions & 0 deletions packages/fastify/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export const SECRET_KEY = process.env.CLERK_SECRET_KEY || '';
* @deprecated Use `CLERK_PUBLISHABLE_KEY` instead.
*/
export const FRONTEND_API = process.env.CLERK_FRONTEND_API || '';
if (FRONTEND_API) {
deprecated('CLERK_FRONTEND_API', 'Use `CLERK_PUBLISHABLE_KEY` environment variable instead.');
}
export const PUBLISHABLE_KEY = process.env.CLERK_PUBLISHABLE_KEY || '';
export const JWT_KEY = process.env.CLERK_JWT_KEY || '';

Expand Down

0 comments on commit e613c04

Please sign in to comment.