Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(frontend): remove clarity #1650

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading