Skip to content

Commit 1acd42d

Browse files
committed
update docs
1 parent e85f0a9 commit 1acd42d

8 files changed

Lines changed: 413 additions & 44 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,5 @@ temp/
107107
.turbo
108108

109109
# Bun
110-
.buntmp/
110+
.buntmp/
111+
.vercel

apps/docs/content/docs/01-getting-started.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ You can let Drizzleasy auto-detect your setup or configure it manually.
2626
### Option A — Auto-detect (recommended)
2727

2828
```ts filename=app/setup/db.ts
29-
import { initializeConnection } from '@remcostoeten/drizzleasy'
29+
import { initializeConnection } from '@remcostoeten/drizzleasy/server'
3030

3131
async function bootstrap() {
3232
const db = await initializeConnection(process.env.DATABASE_URL!)
@@ -39,7 +39,7 @@ async function bootstrap() {
3939
Turso (libsql) requires an auth token:
4040

4141
```ts filename=app/setup/db.turso.ts
42-
import { initializeConnection } from '@remcostoeten/drizzleasy'
42+
import { initializeConnection } from '@remcostoeten/drizzleasy/server'
4343

4444
async function bootstrapTurso() {
4545
const db = await initializeConnection(process.env.DATABASE_URL!, {
@@ -51,7 +51,7 @@ async function bootstrapTurso() {
5151
Environment switching:
5252

5353
```ts filename=app/setup/db.env.ts
54-
import { initializeConnection } from '@remcostoeten/drizzleasy'
54+
import { initializeConnection } from '@remcostoeten/drizzleasy/server'
5555

5656
async function bootstrapEnv() {
5757
const db = await initializeConnection({
@@ -64,7 +64,7 @@ async function bootstrapEnv() {
6464
### Option B — Manual configure
6565

6666
```ts filename=app/setup/manual-config.ts
67-
import { configure } from '@remcostoeten/drizzleasy'
67+
import { configure } from '@remcostoeten/drizzleasy/server'
6868
import { drizzle } from 'drizzle-orm/neon-http'
6969
import * as schema from './schema'
7070

@@ -78,7 +78,7 @@ function setup() {
7878

7979
```ts filename=app/actions/signups.ts
8080
'use server'
81-
import { createFn, readFn } from '@remcostoeten/drizzleasy'
81+
import { createFn, readFn } from '@remcostoeten/drizzleasy/server'
8282

8383
type TSignup = { id: string; email: string; newsletter: 'yes' | 'no' }
8484

apps/docs/content/docs/20-api/03-configuration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Provide your own Drizzle database instance and schema.
44
---
55

66
```ts
7-
import { configure } from '@remcostoeten/drizzleasy'
7+
import { configure } from '@remcostoeten/drizzleasy/server'
88
import { drizzle } from 'drizzle-orm/neon-http'
99
import * as schema from './schema'
1010

apps/docs/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
"postinstall": "fumadocs-mdx"
1010
},
1111
"dependencies": {
12+
"framer-motion": "^12.23.22",
13+
"fumadocs-core": "15.7.13",
14+
"fumadocs-mdx": "11.10.1",
15+
"fumadocs-ui": "15.7.13",
1216
"next": "15.5.3",
1317
"react": "^19.1.1",
14-
"react-dom": "^19.1.1",
15-
"fumadocs-ui": "15.7.13",
16-
"fumadocs-core": "15.7.13",
17-
"fumadocs-mdx": "11.10.1"
18+
"react-dom": "^19.1.1"
1819
},
1920
"devDependencies": {
2021
"@types/node": "24.3.3",

0 commit comments

Comments
 (0)