Skip to content

Commit

Permalink
chore(frontend): remove clarity
Browse files Browse the repository at this point in the history
closes #1649
  • Loading branch information
anupcowkur committed Dec 23, 2024
1 parent 1a7c956 commit 976caf8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
8 changes: 0 additions & 8 deletions frontend/dashboard/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ export default function RootLayout({
/>
<html lang="en">
<body className={`${display.variable} ${body.variable}`}>{children}</body>
<Script id='clarity-script' strategy="afterInteractive">
{`(function(c,l,a,r,i,t,y){
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
t=l.createElement(r);t.async=1;t.src="/api/clarity/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "${process.env.NEXT_PUBLIC_CLARITY_KEY}");
`}
</Script>
</html>
</>
)
Expand Down
8 changes: 0 additions & 8 deletions frontend/dashboard/next.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
async rewrites() {
return [
{
source: '/api/clarity/:path*',
destination: 'https://www.clarity.ms/tag/:path*',
},
];
},
images: {
remotePatterns: [
{
Expand Down
2 changes: 0 additions & 2 deletions self-host/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ NEXT_PUBLIC_API_BASE_URL=http://localhost:8080
###############
# Telemetry #
###############
NEXT_PUBLIC_CLARITY_KEY=ncxulaloll
NEXT_PUBLIC_HIGHLIGHT_PROJECT_ID=4g8nqy9g
NEXT_PUBLIC_FRONTEND_SERVICE_NAME=$NAMESPACE
Expand Down Expand Up @@ -374,7 +373,6 @@ NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL
###############
# Telemetry #
###############
NEXT_PUBLIC_CLARITY_KEY=ndammtknyn
NEXT_PUBLIC_HIGHLIGHT_PROJECT_ID=4g8nqy9g
NEXT_PUBLIC_FRONTEND_SERVICE_NAME=$NAMESPACE
Expand Down

0 comments on commit 976caf8

Please sign in to comment.