Skip to content
Snippets Groups Projects
Commit ef12df09 authored by esikkala's avatar esikkala
Browse files

Clean up

parent 70e98b82
No related branches found
No related tags found
No related merge requests found
......@@ -5,10 +5,11 @@ import { readTranslationsFromGoogleSheets } from '../../../src/client/configs/sa
// import localeEN from '../../client/translations/sampo/localeEN'
import dotenv from 'dotenv'
console.log(`NODE_ENV: ${process.env.NODE_ENV}`)
dotenv.config()
// console.log(`spreadsheetId: ${process.env.SHEETS_API_SHEET_ID}`)
// console.log(`credentials: ${process.env.GOOGLE_APPLICATION_CREDENTIALS}`)
// Start process with an environment variable named GOOGLE_APPLICATION_CREDENTIALS.
// The value of this env var should be the full path to the service account credential file.
// https://github.com/googleapis/google-api-nodejs-client#service-account-credentials
......@@ -20,9 +21,6 @@ const sheets = google.sheets({ version: 'v4', auth })
const spreadsheetId = process.env.SHEETS_API_SHEET_ID
console.log(`spreadsheetId: ${process.env.SHEETS_API_SHEET_ID}`)
console.log(`credentials: ${process.env.GOOGLE_APPLICATION_CREDENTIALS}`)
// const writeToGoogleSheet = async values => {
// try {
// const result = await sheets.spreadsheets.values.update({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment