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

custom fathom domain

This commit is contained in:
2021-12-30 11:00:15 -05:00
parent ff4bf9cc5d
commit 8bbc7e3cf2
2 changed files with 2 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ export const longDescription =
"Hi there! I'm a frontend web developer based in Boston, Massachusetts specializing in the JAMstack, modern JavaScript frameworks, and progressive web apps.";
export const githubRepo = "jakejarvis/jarv.is";
export const fathomSiteId = "WBGNQUKW";
export const fathomCustomDomain = "blue-chilly.jarv.is";
let baseURL = ""; // default to relative URLs
if (process.env.NEXT_PUBLIC_VERCEL_ENV === "production") {

View File

@@ -22,6 +22,7 @@ export default function 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, {
url: `https://${config.fathomCustomDomain || "cdn.usefathom.com"}/script.js`,
includedDomains: [config.siteDomain],
});