diff --git a/.env.example b/.env.example index 1450f5d..2b8ec00 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,3 @@ -DATABASE_URL='localDB/sqlite.db' +LOCAL_DATABASE_URL='localDB/sqlite.db' SECRET_GMAIL_USERNAME=your_gmail_username SECRET_GMAIL_PASS=your_gmail_password diff --git a/drizzle.config.ts b/drizzle.config.ts index 01fa7e5..edd2569 100644 --- a/drizzle.config.ts +++ b/drizzle.config.ts @@ -2,9 +2,9 @@ import * as dotenv from 'dotenv'; import type { Config } from 'drizzle-kit'; dotenv.config(); -const { DATABASE_URL } = process.env; +const { LOCAL_DATABASE_URL } = process.env; -if (!DATABASE_URL) { +if (!LOCAL_DATABASE_URL) { throw new Error( 'No DATABASE_URL defined in the environment variables. Please ensure it is set in the .env file.' ); @@ -15,6 +15,6 @@ export default { out: './drizzleMigrations', driver: 'better-sqlite', dbCredentials: { - url: DATABASE_URL + url: LOCAL_DATABASE_URL } } satisfies Config;