kit
kit copied to clipboard
`vite dev` should include `paths.base` in the "Local" url, or `paths.base` shouldn't be used by `vite.dev`
Describe the problem
if i have paths.base specified, the url that vite dev outputs is incorrect:
// svelte.config.js
import adapter from '@sveltejs/adapter-node'
const config = {
kit: {
adapter: adapter(),
paths: { base: '/foo' },
},
}
export default config
3:08:37 pm [vite] server restarted.
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
when navigating to http://localhost:5173/ the following error is displayed:
Not found (did you mean /foo/?)
Describe the proposed solution
two possible solutions:
- include
paths.basein the url outputted byvite dev(assuming it's possible to change) - from my understanding,
paths.baseis only relevant on the deployment target, meaning there's no reason forvite devto use it. if this is true, it would probably be better forvite devto just ignorepaths.baseentirely
Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response