@@ -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
3131async function bootstrap() {
3232 const db = await initializeConnection (process .env .DATABASE_URL ! )
@@ -39,7 +39,7 @@ async function bootstrap() {
3939Turso (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
4444async function bootstrapTurso() {
4545 const db = await initializeConnection (process .env .DATABASE_URL ! , {
@@ -51,7 +51,7 @@ async function bootstrapTurso() {
5151Environment switching:
5252
5353``` ts filename=app/setup/db.env.ts
54- import { initializeConnection } from ' @remcostoeten/drizzleasy'
54+ import { initializeConnection } from ' @remcostoeten/drizzleasy/server '
5555
5656async 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 '
6868import { drizzle } from ' drizzle-orm/neon-http'
6969import * 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
8383type TSignup = { id: string ; email: string ; newsletter: ' yes' | ' no' }
8484
0 commit comments