Skip to content

Commit

Permalink
Add Plausible (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pabl0cks authored Jan 15, 2025
1 parent d783342 commit 1c3ca24
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/nextjs/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@rainbow-me/rainbowkit/styles.css";
import PlausibleProvider from "next-plausible";
import { ScaffoldEthAppWithProviders } from "~~/components/ScaffoldEthAppWithProviders";
import "~~/styles/globals.css";
import { getMetadata } from "~~/utils/scaffold-eth/getMetadata";
Expand All @@ -11,6 +12,9 @@ export const metadata = getMetadata({
const ScaffoldEthApp = ({ children }: { children: React.ReactNode }) => {
return (
<html suppressHydrationWarning>
<head>
<PlausibleProvider domain="builder.ensgrants.xyz" />
</head>
<body>
<ScaffoldEthAppWithProviders>{children}</ScaffoldEthAppWithProviders>
</body>
Expand Down
1 change: 1 addition & 0 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"graphql": "^16.9.0",
"next": "~14.0.4",
"next-auth": "^4.24.7",
"next-plausible": "^3.12.3",
"nprogress": "~0.2.0",
"pg": "^8.12.0",
"qrcode.react": "~3.1.0",
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3151,6 +3151,7 @@ __metadata:
graphql: ^16.9.0
next: ~14.0.4
next-auth: ^4.24.7
next-plausible: ^3.12.3
nprogress: ~0.2.0
pg: ^8.12.0
postcss: ~8.4.16
Expand Down Expand Up @@ -12486,6 +12487,17 @@ __metadata:
languageName: node
linkType: hard

"next-plausible@npm:^3.12.3":
version: 3.12.4
resolution: "next-plausible@npm:3.12.4"
peerDependencies:
next: "^11.1.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 "
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
checksum: f8ae32eae3b8f4f45e1bdf1ab1aaf6be9ff184468c90253f4920a0cca01b426610c7ac85d082970e614f6f05b3679b9e68aae13ee5081a3d5bd003baaf11005a
languageName: node
linkType: hard

"next@npm:~14.0.4":
version: 14.0.4
resolution: "next@npm:14.0.4"
Expand Down

0 comments on commit 1c3ca24

Please sign in to comment.