Skip to content

Using Spotlight with Remix

Install Sentry & Spotlight

Follow the Remix Getting Started guide on Sentry, and continue from there.

Terminal window
npm add @spotlightjs/spotlight

Initialize 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 }),
);
}