Routes
Mount path → what is served there.
Mount path → what is served there. '/' is the catch-all; the longest matching prefix wins.
routes: {
'/': { bundle: 'app' },
'/docs': { bundle: 'docs', pathResolver: 'html_extension' },
'/api': { proxy: 'http://localhost:8080' },
}A route mounted below the root only works if that app was built for the same base path (Vite
base, Next basePath): the mount prefix is stripped before the bundle sees the request, so the
app's own absolute urls (/assets/…) have to point back at the mount.
Type
type Routes = Record<string, Route>;