diff --git a/docusaurus.config.js b/docusaurus.config.js index 7c2e1cc563..43a05d86ea 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -202,11 +202,11 @@ const config = { }, ...(process.env.GA_TRACKING_ID ? { - gtag: { - trackingID: process.env.GA_TRACKING_ID, - anonymizeIP: true, - }, - } + googleAnalytics: { + trackingID: process.env.GA_TRACKING_ID, + anonymizeIP: true, + }, + } : {}), }), ], @@ -540,7 +540,7 @@ const config = { }; }, /** this function needs doesn't pick up hot reload event, it needs a restart */ - // @ts-ignore + // @ts-expect-error function (context, options) { const { siteConfig } = context; return { @@ -558,7 +558,7 @@ const config = { }; }, async contentLoaded({ content, actions }) { - // @ts-ignore + // @ts-expect-error const { networks, sporks } = content; const { addRoute, createData } = actions; const networksJsonPath = await createData(