mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
When spaHandlerFromDisk receives a non-empty basePath, it pre-computes a modified index.html with a <script> tag injecting window.__BASE_PATH__. This allows the frontend to discover its base path at runtime without build-time configuration. The injection applies to both direct index.html requests and SPA fallback routes.