Skip to content

Commit

Permalink
Fix typos in Astro docs (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper authored Aug 31, 2023
1 parent 85487db commit 72631f1
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions documentation/content/guidebook/drizzle-orm.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Make sure to change the table names accordingly.

```ts
// schema.js
import { mysqlTable, bigint, varchar, boolean } from "drizzle-orm/mysql-core";
import { mysqlTable, bigint, varchar } from "drizzle-orm/mysql-core";

export const user = mysqlTable("auth_user", {
id: varchar("id", {
Expand Down Expand Up @@ -142,7 +142,7 @@ Make sure to change the table names accordingly.

```ts
// schema.js
import { pgTable, bigint, varchar, boolean } from "drizzle-orm/pg-core";
import { pgTable, bigint, varchar } from "drizzle-orm/pg-core";

export const user = pgTable("auth_user", {
id: varchar("id", {
Expand Down
2 changes: 1 addition & 1 deletion documentation/content/guidebook/vercel-postgres.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: "Learn how to use `@vercel/postgres` with Lucia"

```ts
import { lucia } from "lucia";
import { pg } from "@lucia-auth/adapter-postgres";
import { pg } from "@lucia-auth/adapter-postgresql";
import { db } from "@vercel/postgres";

export const auth = lucia({
Expand Down
9 changes: 7 additions & 2 deletions documentation/content/main/getting-started/$astro.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const auth = lucia({
In your `src/app.d.ts` file, declare a `Lucia` namespace. The import path for `Auth` is where you initialized `lucia()`.

```ts
// src/app.d.ts
// src/env.d.ts
/// <reference types="lucia" />
declare namespace Lucia {
type Auth = import("./lib/lucia").Auth;
Expand Down Expand Up @@ -104,7 +104,12 @@ export const onRequest: MiddlewareResponseHandler = async (context, next) => {
Make sure to type `Locals` as well:

```ts
// src/app.d.ts
// src/env.d.ts
/// <reference types="lucia" />
declare namespace Lucia {
// ...
}

/// <reference types="astro/client" />
declare namespace App {
interface Locals {
Expand Down
1 change: 1 addition & 0 deletions examples/astro/email-and-password/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@astrojs/node": "^5.3.0",
"@lucia-auth/adapter-sqlite": "latest",
"astro": "^3.0.0",
"better-sqlite3": "^8.4.0",
"kysely": "^0.25.0",
"lucia": "latest"
},
Expand Down
1 change: 1 addition & 0 deletions examples/astro/github-oauth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@lucia-auth/adapter-sqlite": "latest",
"@lucia-auth/oauth": "latest",
"astro": "^3.0.0",
"better-sqlite3": "^8.4.0",
"lucia": "latest"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions examples/astro/username-and-password/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@astrojs/node": "^5.3.0",
"@lucia-auth/adapter-sqlite": "latest",
"astro": "^3.0.0",
"better-sqlite3": "^8.4.0",
"lucia": "latest"
},
"devDependencies": {
Expand Down

0 comments on commit 72631f1

Please sign in to comment.