Skip to content

Commit

Permalink
🔧 updated dotenv to also check .env.local
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohland committed Oct 26, 2024
1 parent 817b942 commit 1a33feb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env node
import * as Dotenv from "dotenv";

Dotenv.config();
const envPath = ['.env.local', '.env'];
Dotenv.config({ path: envPath });

import yargs from "yargs/yargs";
import { hideBin } from "yargs/helpers";
import fs from 'fs';
Expand Down

0 comments on commit 1a33feb

Please sign in to comment.