Skip to content

Commit

Permalink
working locally
Browse files Browse the repository at this point in the history
  • Loading branch information
robmoffat committed Jan 21, 2025
1 parent 3e9f773 commit 6d4dbdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/signup-submit.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { google } from 'googleapis';
import { fs } from 'fs';
import { readFileSync } from 'fs';


export default async function handler(req, res) {
Expand All @@ -12,7 +12,7 @@ export default async function handler(req, res) {

const CREDENTIALS = process.env.GOOGLE_SERVICE_ACCOUNT ?
JSON.parse(process.env.GOOGLE_SERVICE_ACCOUNT) :
fs.readFileSync('./calendar-service-account.json')
JSON.parse(readFileSync('./calendar-service-account.json'))

console.log(`CREDENTIALS`, CREDENTIALS)

Expand Down

0 comments on commit 6d4dbdb

Please sign in to comment.