We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf1f792 commit 824cdfcCopy full SHA for 824cdfc
frontend/app/root.tsx
@@ -20,6 +20,12 @@ import { XCircle } from './components/icons.js'
20
import { Button } from './components/index.js'
21
22
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
+
29
return (
30
<html lang="en">
31
<head>
@@ -32,10 +38,7 @@ export default function App() {
32
38
defer
33
39
src={`${UMAMI_HOST}/script.js`}
34
40
data-website-id={UMAMI_WEBSITE_ID}
35
- data-domains={[
36
- new URL(APP_URL.production).hostname,
37
- new URL(APP_URL.development).hostname,
- ].join(',')}
41
+ data-domains={domain}
42
/>
43
)}
44
</head>
0 commit comments