preferred way to authenticate bigquery client / gcp when deploying to vercel on prod
Unanswered
Russian Blue posted this in #help-forum
Russian BlueOP
have an app that creates a bigquery client and wondering best way to authenticate in production
const bigquery = new BigQuery();1 Reply
@Russian Blue have an app that creates a bigquery client and wondering best way to authenticate in production
const bigquery = new BigQuery();
by default your code can only accessed on the serverside when in app router. So if you dont expose it with 'use client', everything is fine. And then its normal auth however you want to handle it: custom auth, better-auth, next-auth, ...