Skip to content

Commit 08e37b3

Browse files
authored
eng-938 Apply dotenv in all cases of createEnv (#479)
1 parent a9ff656 commit 08e37b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/database/scripts/createEnv.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const projectIdOrName: string =
2424
"discourse-graph";
2525

2626
const getVercelToken = () => {
27-
dotenv.config();
2827
return process.env["VERCEL_TOKEN"];
2928
};
3029

@@ -148,6 +147,7 @@ const main = async (variant: Variant) => {
148147
};
149148

150149
if (fileURLToPath(import.meta.url) === process.argv[1]) {
150+
dotenv.config();
151151
const variantS: string =
152152
(process.argv.length === 3
153153
? process.argv[2]

0 commit comments

Comments
 (0)