Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit b2957db

Browse files
committed
remove plausable
1 parent 5ad51f1 commit b2957db

File tree

4 files changed

+8
-26
lines changed

4 files changed

+8
-26
lines changed

frontend/next.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
const { withPlausibleProxy } = require('next-plausible');
21
const { i18n } = require('./next-i18next.config');
32

4-
module.exports = withPlausibleProxy()({
3+
module.exports = {
54
i18n,
65
swcMinify: true,
7-
});
6+
};

frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"jest": "^27.2.0",
1818
"next": "12.2.2",
1919
"next-i18next": "^8.8.0",
20-
"next-plausible": "^3.1.9",
2120
"react": "^17.0.2",
2221
"react-confetti": "^6.0.1",
2322
"react-dom": "^17.0.2",

frontend/src/pages/_app.tsx

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,16 @@ import '@fontsource/inter/variable-full.css';
33
import '@fontsource/source-code-pro/400.css';
44
import '@fontsource/source-code-pro/600.css';
55
import { appWithTranslation, useTranslation } from 'next-i18next';
6-
import PlausibleProvider from 'next-plausible';
6+
77
import { AppProps } from 'next/app';
88
import Head from 'next/head';
9-
import React, { ReactNode } from 'react';
109
import Page from '../layout';
1110
import '../styles/globals.css';
1211
import { theme } from '../theme';
1312
import { DEVELOPER_DAO_WEBSITE } from '../utils/DeveloperDaoConstants';
1413

1514
const socialBanner = `${DEVELOPER_DAO_WEBSITE}/social-banner.png`;
1615

17-
const Plausible = ({ children }: { children: ReactNode }) => {
18-
return process.env.NEXT_PUBLIC_VERCEL_ENV === 'production' ? (
19-
<PlausibleProvider domain="developerdao.com">{children}</PlausibleProvider>
20-
) : (
21-
<>{children}</>
22-
);
23-
};
24-
2516
function SEO() {
2617
const { t } = useTranslation();
2718

@@ -80,13 +71,11 @@ user's mobile device or desktop. See https://developers.google.com/web/fundament
8071
const App = ({ Component, pageProps }: AppProps) => (
8172
<>
8273
<SEO />
83-
<Plausible>
84-
<ChakraProvider theme={theme}>
85-
<Page>
86-
<Component {...pageProps} />
87-
</Page>
88-
</ChakraProvider>
89-
</Plausible>
74+
<ChakraProvider theme={theme}>
75+
<Page>
76+
<Component {...pageProps} />
77+
</Page>
78+
</ChakraProvider>
9079
</>
9180
);
9281

frontend/yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4833,11 +4833,6 @@ next-i18next@^8.8.0:
48334833
i18next-fs-backend "^1.0.7"
48344834
react-i18next "^11.8.13"
48354835

4836-
next-plausible@^3.1.9:
4837-
version "3.1.9"
4838-
resolved "https://registry.yarnpkg.com/next-plausible/-/next-plausible-3.1.9.tgz#4795df2e83a6ca14495d2fa0d31a92649c42425f"
4839-
integrity sha512-6Ro6lVnuXAtqbbBQfuKuu0cpZHWWvJWbOE1G+Rx6i42T6lLYtbQzbu09Cutv3vc/wD/4ySHzJkuTnxsqnlArGA==
4840-
48414836
48424837
version "12.2.2"
48434838
resolved "https://registry.yarnpkg.com/next/-/next-12.2.2.tgz#029bf5e4a18a891ca5d05b189b7cd983fd22c072"

0 commit comments

Comments
 (0)