Skip to content

Commit

Permalink
fix(nextjs): Typo use "in Keyless mode" instead of "on" (#4862)
Browse files Browse the repository at this point in the history
Co-authored-by: Lennart <[email protected]>
  • Loading branch information
panteliselef and LekoArts authored Jan 10, 2025
1 parent 7618232 commit 813b16d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-actors-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/nextjs': patch
---

Fix typo for "keyless mode" messages
4 changes: 2 additions & 2 deletions packages/nextjs/src/server/keyless-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function safeParseClerkFile(): AccountlessApplication | undefined {
}

const createMessage = (keys: AccountlessApplication) => {
return `\n\x1b[35m\n[Clerk]:\x1b[0m You are running on keyless mode.\nYou can \x1b[35mclaim your keys\x1b[0m by visiting ${keys.claimUrl}\n`;
return `\n\x1b[35m\n[Clerk]:\x1b[0m You are running in keyless mode.\nYou can \x1b[35mclaim your keys\x1b[0m by visiting ${keys.claimUrl}\n`;
};

async function createOrReadKeyless(): Promise<AccountlessApplication | undefined> {
Expand Down Expand Up @@ -152,7 +152,7 @@ async function createOrReadKeyless(): Promise<AccountlessApplication | undefined
// TODO-KEYLESS: Add link to official documentation.
const README_NOTIFICATION = `
## DO NOT COMMIT
This directory is auto-generated from \`@clerk/nextjs\` because you are running on Keyless mode. Avoid committing the \`.clerk/\` directory as it includes the secret key of the unclaimed instance.
This directory is auto-generated from \`@clerk/nextjs\` because you are running in Keyless mode. Avoid committing the \`.clerk/\` directory as it includes the secret key of the unclaimed instance.
`;

writeFileSync(README_PATH, README_NOTIFICATION, {
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/src/server/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export function decryptClerkRequestData(
return decryptData(encryptedRequestData, maybeKeylessEncryptionKey);
} catch (err) {
/**
* There is a great chance when running on Keyless mode that the above fails,
* There is a great chance when running in Keyless mode that the above fails,
* because the keys hot-swapped and the Next.js dev server has not yet fully rebuilt middleware and routes.
*
* Attempt one more time with the default dummy value.
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/clerk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ export type ClerkOptions = ClerkOptionsNavigation &
>;

/**
* The URL a developer should be redirected to in order to claim an instance created on Keyless mode.
* The URL a developer should be redirected to in order to claim an instance created in Keyless mode.
*/
__internal_claimKeylessApplicationUrl?: string;

Expand Down

0 comments on commit 813b16d

Please sign in to comment.