File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,21 +8,23 @@ import Media from "./collections/Media";
8
8
import Homepage from "./globals/Homepage" ;
9
9
import dashboardAnalytics from "../../dist/index" ;
10
10
11
+ import { PlausibleProvider , GoogleProvider } from "../../dist/types/providers" ;
12
+
11
13
const PLAUSIBLE_API_KEY = process . env . PLAUSIBLE_API_KEY ;
12
14
const PLAUSIBLE_HOST = process . env . PLAUSIBLE_HOST ;
13
15
const PLAUSIBLE_SITE_ID = process . env . PLAUSIBLE_SITE_ID ;
14
16
15
17
const GOOGLE_PROPERTY_ID = process . env . GOOGLE_PROPERTY_ID ;
16
18
const GOOGLE_CREDENTIALS_FILE = process . env . GOOGLE_CREDENTIALS_FILE ;
17
19
18
- const plausibleProvider = {
20
+ const plausibleProvider : PlausibleProvider = {
19
21
source : "plausible" ,
20
22
apiSecret : PLAUSIBLE_API_KEY ,
21
23
siteId : PLAUSIBLE_SITE_ID ,
22
24
host : PLAUSIBLE_HOST ,
23
25
} ;
24
26
25
- const googleProvider = {
27
+ const googleProvider : GoogleProvider = {
26
28
source : "google" ,
27
29
//credentials: GOOGLE_CREDENTIALS_FILE,
28
30
propertyId : GOOGLE_PROPERTY_ID ,
You can’t perform that action at this time.
0 commit comments