Skip to content

Commit

Permalink
Update database URL in .env.example and drizzle.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardspresume committed Apr 3, 2024
1 parent 2699c82 commit 6a2cd56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
);
Expand All @@ -15,6 +15,6 @@ export default {
out: './drizzleMigrations',
driver: 'better-sqlite',
dbCredentials: {
url: DATABASE_URL
url: LOCAL_DATABASE_URL
}
} satisfies Config;

0 comments on commit 6a2cd56

Please sign in to comment.