Skip to content

Commit

Permalink
Remove Plausible (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
crudh authored Feb 13, 2024
1 parent 92c4260 commit 053be48
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 30 deletions.
12 changes: 0 additions & 12 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,6 @@ const nextConfig = {
},
];
},
async rewrites() {
return [
{
source: "/_an/js/script.js",
destination: "https://plausible.io/js/script.js",
},
{
source: "/_an/api/event",
destination: "https://plausible.io/api/event",
},
];
},
};

module.exports = withBundleAnalyzer(withPWA(nextConfig));
31 changes: 21 additions & 10 deletions package-lock.json

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

8 changes: 0 additions & 8 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ class MyDocument extends Document {
as="font"
crossOrigin="anonymous"
/>
{process.env.VERCEL_ENV === "production" ? (
<script
defer
src="/_an/js/script.js"
data-api="/_an/api/event"
data-domain="vim.how"
></script>
) : null}
</Head>
<body className="text-white bg-black font-fira">
<Main />
Expand Down

0 comments on commit 053be48

Please sign in to comment.