diff --git a/website/src/components/Link.tsx b/website/src/components/Link.tsx index 76d78f2b..7a594e98 100644 --- a/website/src/components/Link.tsx +++ b/website/src/components/Link.tsx @@ -14,5 +14,5 @@ export function Link(props: LinkProps) { ); } - return ; + return ; } diff --git a/website/src/components/Scripts.tsx b/website/src/components/Scripts.tsx index a979d753..0971217f 100644 --- a/website/src/components/Scripts.tsx +++ b/website/src/components/Scripts.tsx @@ -7,7 +7,7 @@ export function Scripts() { const scripts = usePageContext().bundle.config.scripts; // We don't want to load the scripts in preview mode or in preview environments. - if (ctx.preview || getEnvironment() !== "production") { + if (ctx.preview) { return null; } @@ -20,15 +20,21 @@ export function Scripts() { /> )} {!!scripts?.googleAnalytics && ( -