Custom route for Workers with static assets seem broken

I want to move my project https://github.com/StefanOltmann/oni-seed-browser to Cloudflare from GitHub Pages This works fine: https://oni-seed-browser.stefanoltmann.workers.dev/ I want it available on the custom route https://stefanoltmann.de/oni-seed-browser I entered stefanoltmann.de/oni-seed-browser* as route, but it doesn't work. HTTP 404. What I'm doing wrong?
GitHub
GitHub - StefanOltmann/oni-seed-browser: Oxygen Not Included Seed B...
Oxygen Not Included Seed Browser. Contribute to StefanOltmann/oni-seed-browser development by creating an account on GitHub.
5 Replies
Walshy
Walshy•3mo ago
It looks like your index is at /index.html, if you're mounting on a path you need that as part of your asset path - so /oni-seed-browser/index.html
Walshy
Walshy•3mo ago
Steps
StepsOP•3mo ago
Thanks, I got it working! 🙂 To be honest, this is somehow not intuitive / feels like a limitation. I would have never expected that this must be relative to the root domain.
Steps
StepsOP•3mo ago
Okay... Manually it works, CI complains.
No description
Walshy
Walshy•3mo ago
What version of Wrangler is your CI using? That seems very old

Did you find this page helpful?