1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 13:46:38 -04:00

fix fathom custom domain prefetch

This commit is contained in:
2022-01-07 18:44:26 -05:00
parent a1fd5cd940
commit 23f05f2761
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ const App = ({ Component, pageProps }: AppProps) => {
// 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.fathomCustomScript || "https://cdn.usefathom.com/script.js",
url: `${config.fathomCustomDomain || "https://cdn.usefathom.com"}/script.js`,
// don't track branch/deploy previews and localhost
includedDomains: [config.siteDomain],
});