You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the use case of deploying to GitHub Pages, where a base URL must be specified (e.g., the name of the repo).
However, when developing a SvelteKit app locally, the base URL cannot be specified. A "not found" error is shown when attempting to navigate to http://localhost/<base-url>/.
As a result, base must be conditionally applied only when building the app for production.
Describe the problem
Consider the use case of deploying to GitHub Pages, where a
base
URL must be specified (e.g., the name of the repo).However, when developing a SvelteKit app locally, the base URL cannot be specified. A "not found" error is shown when attempting to navigate to
http://localhost/<base-url>/
.As a result,
base
must be conditionally applied only when building the app for production.Prior Art
vite
uses thebase
URL when developing locally:Run
vite dev
:Describe the proposed solution
The desired UX would be to avoid conditionally applying a base path:
This would also make it easier to preview the app locally (i.e.
svelte-kit preview
).Alternatives considered
No response
Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered: