1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-23 08:04:28 -04:00

directly (and still dynamically) assign a few of the mdx components

This commit is contained in:
2022-01-05 15:07:54 -05:00
parent fb491d7337
commit 2d44b58242
9 changed files with 43 additions and 44 deletions

View File

@@ -30,7 +30,9 @@ const App = ({ Component, pageProps }: AppProps) => {
// https://usefathom.com/docs/integrations/next
// https://vercel.com/guides/deploying-nextjs-using-fathom-analytics-with-vercel
Fathom.load(config.fathomSiteId, {
// optional custom domain: https://usefathom.com/docs/script/custom-domains
url: `${config.fathomCustomDomain || "https://cdn.usefathom.com"}/script.js`,
// don't track branch/deploy previews and localhost
includedDomains: [config.siteDomain],
});
@@ -38,7 +40,7 @@ const App = ({ Component, pageProps }: AppProps) => {
Fathom.trackPageview();
};
// send ping when route changes
// needs to be triggered manually on link clicks (the page doesn't actually change)
router.events.on("routeChangeComplete", onRouteChangeComplete);
return () => {