Skip to content

Commit

Permalink
docs: add plausible monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
wenfengwang committed Apr 25, 2024
1 parent 80c36eb commit ab2a72b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"homepage": "https://github.com/npi-ai/npi",
"dependencies": {
"next-plausible": "^3.12.0",
"jotai": "^2.8.0",
"next": "^14.2.2",
"nextra": "^2.13.4",
Expand Down
7 changes: 6 additions & 1 deletion docs/pages/_app.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import '../style.css';
import PlausibleProvider from 'next-plausible'

export default function MyApp({ Component, pageProps }) {
// This default export is required in a new `pages/_app.js` file.
return <Component {...pageProps} />;
return (
<PlausibleProvider domain="docs.npi.ai">
<Component {...pageProps} />
</PlausibleProvider>
)
}
23 changes: 19 additions & 4 deletions docs/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ab2a72b

Please sign in to comment.