createIPXWebServer
seems to have trouble with Hono basePaths
#239
Labels
createIPXWebServer
seems to have trouble with Hono basePaths
#239
Environment
[email protected]
[email protected]
[email protected]
Reproduction
Describe the bug
As you can see in the example above, I'm using a basepath of
/worker/v1
.When attempting to visit the following URL:
http://localhost:8000/worker/v1/grayscale/butt.png
I get the following error:
However, if I remove the basePath option on the Hono instantiation everythign does work. For example, then when visiting
http://localhost:8000/grayscale/butt.png
I get a grayscale version of the image.In addition, passing a path section to the
app.use()
call doesn't seem to work as expected either. So for example, a Hono instance setup like this:Throws the same "File not found" error when visitng, for example:
http://localhost:8000/img/grayscale/butt.png
Oddly,
http://localhost:8000/img/butt.png
does load the raw original image then, but I can't apply any operations via a path segment.Additional context
Maybe I'm missing something, but it seems that my usage of the basePath / path sections should work, no?
Logs
No response
The text was updated successfully, but these errors were encountered: