Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(astro): Remove typescript declaration step #1808

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions docs/quickstarts/astro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,6 @@ description: Add authentication and user management to your Astro app with Clerk
```
1. By default, `clerkMiddleware()` will not protect any routes. All routes are public and you must opt-in to protection for routes. See the [`clerkMiddleware()` reference](/docs/references/astro/clerk-middleware) to learn how to require authentication for specific routes.

## Add TypeScript declarations

Update the `env.d.ts` file in your `src/` directory to add type definitions for the `locals` added by the middleware.

```ts {{ prettier: false, filename: 'src/env.d.ts', mark: [3] }}
// The line directly below will only be present if you've ran your app
// Don't worry about adding it manually
/// <reference path="../.astro/types.d.ts" />

/// <reference types="astro/client" />
/// <reference types="@clerk/astro/env" />
```

## Add Clerk components to your app

You can control which content signed-in and signed-out users can see with Clerk's [prebuilt control components](/docs/components/overview#what-are-control-components). Create a header using the following components:
Expand Down
Loading