Monorepo for the nibling.run platform

Keep the device-log reporter and endpoint out of production

The playground's device reporter (phone-console errors and a capabilities "hello") lived as an inline script in index.html and beaconed to /__device-log on every page load, but that endpoint is dev server only. A production build shipped the beacon anyway, so every real page load fired a POST that 405s. Move the reporter into the nib-device-log Vite plugin, injected via transformIndexHtml, which (like the plugin's endpoint) is apply: "serve", so a production build carries neither the script nor any reference to the endpoint. Gate drag-trace.ts's dynamic import the same way: it also beacons to /__device-log, and editor.ts (production code) imports it behind a query param that a real visitor could still set.


Author natemoo.re
Date Commit Parent cd62feb4
+102 -39
4 changed files
+102 -39
4 changed files