Skip to content

Serving multiple pages with glob pattern doesn't work for subdirectories (windows) #24031

@lekoala

Description

@lekoala

What version of Bun is running?

1.3.1+89fa0f343

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What steps can reproduce the bug?

define this

bun ./dist/**/*.html

have a directory like

/dist/index.html
/dist/components/buttons.html
...

run, you get something like

Routes:
  ├── / → dist\index.html
  ├── /components\buttons → dist\components\buttons.html
  └── /components\forms → dist\components\forms.html

What is the expected behavior?

url components/buttons should work, but it doesn't

the output should be components/buttons instead of components\buttons

What do you see instead?

a 404 not found page

Additional information

it just needs to transform backslashes to forward slashes as far as i can tell

Metadata

Metadata

Assignees

No one assigned

    Labels

    bake:devhot-reloading dev server for client+server applicationsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions