Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple environment support and cleanup #11

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Next Next commit
chore: remove unused DATABASE_URL from config and .env.sample
  • Loading branch information
hassancodess committed Sep 13, 2024
commit 1690b30093e5ae2838ff006b184fdf668267c6fb
1 change: 0 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -31,5 +31,4 @@ GOOGLE_CLIENT_SECRET=''
GOOGLE_REDIRECT_URI = ''

# DATABSES
DATABASE_URL=""
REDIS_URL=""
1 change: 0 additions & 1 deletion src/config/config.service.ts
Original file line number Diff line number Diff line change
@@ -8,7 +8,6 @@ dotenv.config();
const configSchema = z.object({
REDIS_URL: z.string().url(),
PORT: z.string().regex(/^\d+$/).transform(Number),
DATABASE_URL: z.string().url().optional(),
MONGO_DATABASE_URL: z.string().url(),
SMTP_HOST: z.string().min(1).optional(),
SMTP_PORT: z.string().regex(/^\d+$/).transform(Number).optional(),