-
Notifications
You must be signed in to change notification settings - Fork 408
Closed
Labels
Description
UPDATE (moving focus from base prop in vite.config to base prop on Router): For repro instructions, see #1158 (comment)
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
Currently the /_build is the default base path:
solid-start/packages/start/config/index.js
Line 156 in cfe17fa
| base: "/_build" |
Expected behavior 🤔
I expected either / or '' to be the default base path unless set otherwise. If i set it to these values, my routes return nothing.
Steps to reproduce 🕹
- npm create solid.
- choose
baretemplate
set the vite config to:
export default defineConfig({
base: "/test/"
});- launch the dev server and go to `http://localhost:3000/test/
- result is that page isn't found, and that it's still only on http://localhost:3000
Context 🔦
I'm making a SSG docs site, on a subpath like this example.com/subpath/routes and thus need to set the base to /subpath/
this is to some extend a remake of the now obsolete
Your environment 🌎
@solidjs/start 0.4
@solidjs/router 0.10
macos - arm64
chrome 120Reactions are currently unavailable