Skip to content

Commit

Permalink
add setup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
xerosanyam committed Jun 6, 2024
1 parent 09d828f commit e1b164d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions SETUP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Setup

## New DB Setup

1. keep env variables in `.env` file
1. `bun run generate`
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"test": "vitest",
"lint": "prettier --check . && eslint .",
"format": "prettier --write ."
"format": "prettier --write .",
"migrate": "npx drizzle-kit migrate"
},
"devDependencies": {
"@iconify/json": "^2.2.214",
Expand Down
5 changes: 3 additions & 2 deletions src/lib/db/turso.db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ export const turso_client = createClient({
authToken: TURSO_AUTH_TOKEN,
});

export const db = drizzle(turso_client);

export const db = drizzle(turso_client,
// { logger: true }
);

0 comments on commit e1b164d

Please sign in to comment.