Skip to content

Commit 824cdfc

Browse files
committed
change data-domains atr
1 parent cf1f792 commit 824cdfc

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

frontend/app/root.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ import { XCircle } from './components/icons.js'
2020
import { Button } from './components/index.js'
2121

2222
export default function App() {
23+
const domain = new URL(
24+
process.env.NODE_ENV === 'development'
25+
? APP_URL.development
26+
: APP_URL.production,
27+
).hostname
28+
2329
return (
2430
<html lang="en">
2531
<head>
@@ -32,10 +38,7 @@ export default function App() {
3238
defer
3339
src={`${UMAMI_HOST}/script.js`}
3440
data-website-id={UMAMI_WEBSITE_ID}
35-
data-domains={[
36-
new URL(APP_URL.production).hostname,
37-
new URL(APP_URL.development).hostname,
38-
].join(',')}
41+
data-domains={domain}
3942
/>
4043
)}
4144
</head>

0 commit comments

Comments
 (0)