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&&