Skip to content

Commit

Permalink
modify env config
Browse files Browse the repository at this point in the history
  • Loading branch information
ArshMalik02 committed Sep 3, 2023
1 parent 95fab2e commit d8ce46a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion getOfficers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as dotenv from 'dotenv';
import { google } from 'googleapis';

// .env config
dotenv.config();
dotenv.config({ path: '.env.local' });
const SPREADSHEET_ID = process.env.DIRECTORY_SPREADSHEET_ID;
const SERVICE_ACCOUNT = process.env.SERVICE_ACCOUNT ?? '{}';
export default async function getOfficerData(
Expand Down
2 changes: 1 addition & 1 deletion scripts/component-generator.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getCssStringFromCommittee, generateCommittee } from './lib.mjs';
// import vars from '../styles/global_variables.module.scss';

// .env config
dotenv.config();
dotenv.config({ path: '.env.local' });
const SPREADSHEET_ID = process.env.LANDING_SPREADSHEET_ID;
const SERVICE_ACCOUNT = process.env.SERVICE_ACCOUNT ?? '';

Expand Down
2 changes: 1 addition & 1 deletion scripts/event-generator-sheets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { google } from 'googleapis';
import { getCssStringFromCommittee, generateSingleEvent } from './lib.mjs';

// .env config
dotenv.config();
dotenv.config({ path: '.env.local' });
const SPREADSHEET_ID = process.env.EVENTS_SPREADSHEET_ID;
const SERVICE_ACCOUNT = process.env.SERVICE_ACCOUNT ?? '';

Expand Down
2 changes: 1 addition & 1 deletion scripts/landing-page-generator.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { google } from 'googleapis';
import { getCssStringFromCommittee, generateCommittee } from './lib.mjs';

// .env config
dotenv.config();
dotenv.config({ path: '.env.local' });
const SPREADSHEET_ID = process.env.LANDING_SPREADSHEET_ID;
const SERVICE_ACCOUNT = process.env.SERVICE_ACCOUNT ?? '';

Expand Down

0 comments on commit d8ce46a

Please sign in to comment.