WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Incorrect glob pattern **/*.html routes for static sites on Windows #25386

@jakeg

Description

@jakeg

On Windows, run bun ./**/*.html in a folder with foo/index.html in it:

DEV  Bun v1.3.4 ready in 54.55 ms

➜ http://localhost:3000/

Routes:
  ├── / → index.html
  ├── /blah → blah.html
  └── /foo\ → foo\index.html

Press h + Enter to show shortcuts

... try to access http://localhost:3000/foo and it 404s.

Silly Windows backslashes need normalising/changing to forward slashes in the routes. The route should be /foo not /foo\.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions