Skip to content

Commit

Permalink
docs(astro): Remove typescript declaration step
Browse files Browse the repository at this point in the history
  • Loading branch information
wobsoriano committed Dec 13, 2024
1 parent d1f8f86 commit 17b6901
Showing 1 changed file with 0 additions and 13 deletions.
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

0 comments on commit 17b6901

Please sign in to comment.