Load .env in seed script (ADMIN_USER/PASS/UPLOAD_DIR)
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import 'dotenv/config';
|
||||||
import bcrypt from 'bcryptjs';
|
import bcrypt from 'bcryptjs';
|
||||||
import { readFileSync } from 'node:fs';
|
import { readFileSync } from 'node:fs';
|
||||||
import { dirname, join } from 'node:path';
|
import { dirname, join } from 'node:path';
|
||||||
|
|||||||
Reference in New Issue
Block a user