Update bqexport.js to use environment variable for GCS credentials instead of an empty object.

This commit is contained in:
Raunak Singh 2025-07-31 11:36:56 +05:30
parent 4f12397489
commit bd868852df

View File

@ -9,7 +9,7 @@ const bigquery = new BigQuery({
});
const storage = new Storage({
projectId: process.env.PROJECT_ID || 'fynd-jio-commerceml-prod',
credentials: {}
credentials: process.env.GCS_CREDENTIALS || {}
});
export const exportMergedJson = async (req, res) => {