Using Spotlight with Remix
Install Sentry & Spotlight
Follow the Remix Getting Started guide on Sentry, and continue from there.
npm add @spotlightjs/spotlightpnpm add @spotlightjs/spotlightyarn add @spotlightjs/spotlightInitialize Spotlight within entry.client.js, after you’ve hydrated the document:
startTransition(() => { hydrateRoot(document, <RemixBrowser />);});
if (process.env.NODE_ENV === "development") { import("@spotlightjs/spotlight").then((Spotlight) => Spotlight.init({ injectImmediately: true }), );}