File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,9 @@ MONGODB_URI=
22PAYLOAD_SECRET =
33
44PLAUSIBLE_API_KEY =
5+ PLAUSIBLE_SITE_ID =
6+ PLAUSIBLE_HOST =
7+
8+ GOOGLE_PROPERTY_ID =
9+ GOOGLE_CREDENTIALS_FILE = " ./ga_credentials.json"
10+ GOOGLE_APPLICATION_CREDENTIALS =
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const plausibleProvider: PlausibleProvider = {
2525
2626const googleProvider : GoogleProvider = {
2727 source : "google" ,
28- credentials : GOOGLE_CREDENTIALS_FILE ,
28+ // credentials: GOOGLE_CREDENTIALS_FILE,
2929 propertyId : GOOGLE_PROPERTY_ID ,
3030} ;
3131
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ type ClientOptions = {};
77
88function client ( provider : GoogleProvider , options ?: ClientOptions ) {
99 const analyticsDataClient = new BetaAnalyticsDataClient ( {
10- keyFilename : provider . credentials ,
10+ ... ( provider . credentials ? { keyFilename : provider . credentials } : { } ) ,
1111 } ) ;
1212
1313 return {
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ export interface PlausibleProvider {
77
88interface GoogleProvider {
99 source : "google" ;
10- credentials : string ;
1110 propertyId : string ;
11+ credentials ?: string ;
1212}
You can’t perform that action at this time.
0 commit comments