You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/800-guides/420-clerk-astro.mdx
+1-19Lines changed: 1 addition & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,8 +34,6 @@ It will prompt you to customize your setup. Choose the defaults:
34
34
35
35
-*How would you like to start your new project?*`Empty`
36
36
-*Install dependencies?*`Yes`
37
-
-*Do you plan to write TypeScript?*`Yes`
38
-
-*How strict should TypeScript be?*`Strict`
39
37
-*Initialize a new git repository?*`Yes`
40
38
41
39
:::
@@ -200,21 +198,7 @@ This will create:
200
198
201
199
### 3.2. Define your Prisma Schema
202
200
203
-
In the `prisma/schema.prisma` file, configure the generator output path to store the generated Prisma Client in your `src` directory:
204
-
205
-
```prisma file=prisma/schema.prisma
206
-
generator client {
207
-
provider = "prisma-client"
208
-
//add-next-line
209
-
output = "../src/generated/prisma"
210
-
}
211
-
212
-
datasource db {
213
-
provider = "postgresql"
214
-
}
215
-
```
216
-
217
-
Now add a `User` model that will store authenticated user information from Clerk. The `clerkId` field uniquely links each database user to their Clerk account:
201
+
Add a `User` model that will store authenticated user information from Clerk. The `clerkId` field uniquely links each database user to their Clerk account:
218
202
219
203
```prisma file=prisma/schema.prisma
220
204
generator client {
@@ -451,8 +435,6 @@ Copy the ngrok `Forwarding URL` (e.g., `https://a65a60261342.ngrok-free.app`). T
451
435
Astro needs to be configured to accept connections from the ngrok domain. Update your `astro.config.mjs` to include the ngrok host in the allowed hosts list:
0 commit comments