solid-start
solid-start copied to clipboard
[solid-start-static]: assets are linked from `/` instead of using `config.base`
Reproduction:
Use the default solid-start starter with the static adapter and in vite.config.ts, you set base: "" or base: "./". Run npm run build (or pnpm or yarn).
Expected outcome:
In index.html, assets are linked from a relative path, according to the given base.
Actual outcome:
in both cases, the base path is ignored and the assets are still linked from /assets/....
Workaround:
Use sed to fix the path, e.g. sed -i 's/\\/assets/assets/g' dist/index.html, but that's not an ideal workflow.
Fixed in PR #311