From b4198d9702242727bc0e5afc677f7fee59658066 Mon Sep 17 00:00:00 2001 From: Adam Siwiec <73085927+adamsiwiec1@users.noreply.github.com> Date: Fri, 23 Oct 2026 05:17:05 -0400 Subject: [PATCH] Add HyperDX browser RUM via env --- .env.example | 4 + .gitignore | 3 + app/layout.js | 2 + components/hyperdx-init.js | 35 ++ package-lock.json | 1150 +++++++++++++++++++++++++++++++++++- package.json | 26 +- 6 files changed, 1218 insertions(+), 2 deletions(-) create mode 100644 .env.example create mode 100644 components/hyperdx-init.js diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..1337faf --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ + +# HyperDX browser RUM (self-hosted). Leave empty locally to skip init. +NEXT_PUBLIC_HYPERDX_API_KEY= +NEXT_PUBLIC_HYPERDX_URL=https://hyperdx.devrecated.com diff --git a/.gitignore b/.gitignore index 2db2eaf..f996d5c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ node_modules/ out/ .env .env.* +!.env.example !box/env.example *.token .token @@ -17,3 +18,5 @@ npm-debug.log* dist/ __pycache__/ *.pyc +.env.local +.env*.local diff --git a/app/layout.js b/app/layout.js index 0929a92..ea953f5 100644 --- a/app/layout.js +++ b/app/layout.js @@ -1,7 +1,9 @@ +import { HyperDXInit } from "@/components/hyperdx-init"; import "./globals.css"; import { REPO_URL } from "@/lib/links"; import { DEMO } from "@/lib/db"; export const metadata={title:"GrugBot Console"}; export default function L({children}){return {DEMO&&