Skip to content

Commit

Permalink
fix: add plausible script to app router too
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Feb 20, 2025
1 parent 17d328c commit 8ee8b5b
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,22 @@ export default function RootLayout({ children }: RootLayoutProps) {
<html lang="en" suppressHydrationWarning>
<head>
{process.env.NODE_ENV === "production" && (
<Script
async
defer
src="https://js.jam.dev/support/d00eb75d-44cf-48af-a274-ae7c828bb08e.js"
/>
<>
<Script
async
defer
src="/js/script.js"
data-api="/api/event"
data-domain="guild.xyz"
integrity="sha512-HVRUd9pld7dyE4GD9bua0YojsAokMtFExYGvwJhJ5zq37EEX7yEOeYEsh0yh/CypC832F1VkewDepCdoDlPwEw=="
data-exclude="/oauth**"
/>
<Script
async
defer
src="https://js.jam.dev/support/d00eb75d-44cf-48af-a274-ae7c828bb08e.js"
/>
</>
)}
</head>
<body className={cn(dystopian.variable, inter.variable)}>
Expand Down

0 comments on commit 8ee8b5b

Please sign in to comment.