Skip to content

[Bug?]: Router "base" property is flaky #1158

@birkskyum

Description

@birkskyum

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:

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 bare template

set the vite config to:

export default defineConfig({
  base: "/test/"
});

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 120

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvinxirelated to vinxi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions