-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Serving multiple pages with glob pattern doesn't work for subdirectories (windows) #24031
Copy link
Copy link
Labels
bake:devhot-reloading dev server for client+server applicationshot-reloading dev server for client+server applicationsbugSomething isn't workingSomething isn't working
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bake:devhot-reloading dev server for client+server applicationshot-reloading dev server for client+server applicationsbugSomething isn't workingSomething isn't working