fix-paths-for-subpath-hosting
Make a static site's asset paths relative so it works wherever Simple Host serves it — the root of its own host, or the short-lived /<site>/ address a new owner's site may have at first. First detects the framework — for any framework with a base-path build setting (Vite, Next.js, CRA, SvelteKit, Astro, Nuxt, Angular, Gatsby, Vue CLI), routes back to the simple-host skill's framework-specific build instructions. Mechanically rewrites root-relative paths to relative paths only for genuinely raw HTML projects with no build system. Use before deploying a plain HTML site, when its assets 404, or when the deploy skill references this as a pre-deploy step.
Pinned to revision 2221ac3cf09f, so it is the text this page describes rather than whatever the author pushed since.
Files
Every link opens the file at its source, pinned to the revision this page describes.