Skip to content

Commit d49ac7a

Browse files
committed
chore: use dotenv in bundler script
1 parent ada3469 commit d49ac7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/schema/build/bundle.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ const watch = process.argv.includes('--watch');
22
const minify = process.argv.includes('--minify');
33
const success = watch ? 'Watch build succeeded' : 'Build succeeded';
44
const fs = require('fs');
5-
const path = require('path');
5+
require('dotenv').config({ path: './.env.local' });
6+
require('dotenv').config({ path: './.env' });
67

78
// Replace telemetry token in generated bundle files after building
89
function replaceTelemetryTokenInBundle() {

0 commit comments

Comments
 (0)