Skip to content

Commit

Permalink
feat: use local SQLite file
Browse files Browse the repository at this point in the history
  • Loading branch information
ixartz committed Aug 21, 2023
1 parent ce524dd commit fe52801
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drizzle.config.ts
Expand Up @@ -5,6 +5,6 @@ export default {
schema: './src/models/schema.ts',
driver: 'libsql',
dbCredentials: {
url: 'http://127.0.0.1:8080',
url: 'file:next-js-boilerplate.db',
},
} satisfies Config;
2 changes: 1 addition & 1 deletion src/lib/DB.ts
Expand Up @@ -3,7 +3,7 @@ import { drizzle } from 'drizzle-orm/libsql';
import { migrate } from 'drizzle-orm/libsql/migrator';

const client = createClient({
url: 'http://127.0.0.1:8080',
url: 'file:next-js-boilerplate.db',
});

export const db = drizzle(client);
Expand Down

0 comments on commit fe52801

Please sign in to comment.