




























To get up and running with Clerk and Astro, start by installing the astro-clerk-auth and @astrojs/node packages:
Before you start using the Clerk integration, you'll first need to set the following environment variables:
Update the env.d.ts file inside your Astro project:
Open astro.config.mjs file and add the clerk() integration, and set the output to server:
This example showcases how to use the clerkMiddleware and the createRouteMatcher in Astro:
The package exports the Clerk prebuilt UI components as Astro components and can be used anywhere inside the website:
Congratulations, you have secured your Astro website with Clerk!
To learn more, check out the repo on GitHub.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。