Using Spotlight with Vite
If your project is using Vite to build, you can add Spotlight as a plugin and it will automatically inject itself into the development server. It will also replace the Vite error pages with itself for more context.
If you have a Sentry SDK you will get a much better experience but Spotlight is already useful on its own.