Skip to content

Commit 3a8bec8

Browse files
committed
Merge branch 'develop' into feature/65-cli-make-tests-run-in-parallel
2 parents b5f206b + 4d6296c commit 3a8bec8

File tree

4 files changed

+28
-10
lines changed

4 files changed

+28
-10
lines changed

pnpm-lock.yaml

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/next.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const { withPlausibleProxy } = require("next-plausible")
2+
13
/** @type {import('next').NextConfig} */
24
const config = {
35
reactStrictMode: true,
@@ -6,4 +8,4 @@ const config = {
68
},
79
}
810

9-
module.exports = config
11+
module.exports = withPlausibleProxy()(config)

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@emotion/styled": "^11.10.6",
1717
"framer-motion": "^10.12.4",
1818
"next": "^13.3.0",
19+
"next-plausible": "^3.7.2",
1920
"react": "^18.2.0",
2021
"react-dom": "^18.2.0",
2122
"react-hook-form": "^7.43.9",

website/pages/_app.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
import { ChakraProvider } from "@chakra-ui/react"
2+
import PlausibleProvider from "next-plausible"
23
import { AppProps } from "next/app"
3-
import Script from "next/script"
44
import { theme } from "../theme"
55

66
const CustomApp = ({ Component, pageProps }: AppProps) => {
77
return (
8-
<ChakraProvider theme={theme}>
9-
<Component {...pageProps} />
10-
<Script
11-
data-domain="create-next-stack.com"
12-
src="https://plausible.io/js/script.js"
13-
strategy="afterInteractive"
14-
/>
15-
</ChakraProvider>
8+
<PlausibleProvider domain="create-next-stack.com">
9+
<ChakraProvider theme={theme}>
10+
<Component {...pageProps} />
11+
</ChakraProvider>
12+
</PlausibleProvider>
1613
)
1714
}
1815

0 commit comments

Comments
 (0)