You need to generate a publishable key from Clerk and put it
inside the .env file.
Set your Clerk API key
-
In the{' '}
Clerk
{' '} Dashboard, navigate to the API keys page. - In the Quick Copy section, copy your Clerk Publishable Key.
-
Rename
.env.exampleto{' '}.env -
Paste your key into your
.env{' '} file.
The final result should resemble the following:
VITE_CLERK_PUBLISHABLE_KEY=YOUR_PUBLISHABLE_KEY
The Clerk integration lives entirely inside{' '}
src/routes/clerk. If you plan
to use Clerk as your auth service, you might want to place{' '}
ClerkProvider at the root
route.
However, if you don't plan to use Clerk, you can safely remove
this directory and related dependency_{' '}
@clerk/react.
This setup is modular by design and won't affect the rest of the application.