We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c75399 commit 57b677aCopy full SHA for 57b677a
components/scripts.tsx
@@ -8,6 +8,7 @@ import posthog from 'posthog-js';
8
import { useEffect, useState } from 'react';
9
10
const isProd = process.env.NEXT_PUBLIC_VERCEL_ENV === 'production';
11
+const baseDir = process.env.NEXT_PUBLIC_BASE_DIR || '';
12
13
function Reo() {
14
const reoClientId = process.env.NEXT_PUBLIC_REO_CLIENT_ID;
@@ -58,7 +59,7 @@ function HubSpot() {
58
59
// @ts-ignore
60
const hs = window?._hsq;
61
if (afterLoad && pathname && hs) {
- let path = pathname;
62
+ let path = `${baseDir}${pathname}`;
63
if (searchParams && searchParams.toString()) {
64
path = path + `?${searchParams.toString()}`;
65
}
0 commit comments