-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMPORTANT] [BUG] indexHTML
option is broken in latest version
#37
Comments
indexHTML
option is broken static plugin latest versionindexHTML
option is broken in latest version
I've ran into this issue just now, and setting |
@RafalGoslawski, it is frustrating how long we have to wait for a simple bug to be fixed even after we have reported in and opened a pr in elysia. This is sad. |
And this is not a normal bug at all. This breaks my homepage. |
@touhidurrr I get the frustration. There's always a risk when it comes to using software that's a personal project (i.e. maintained by 1 person). That being said, we're paying nothing to use this software so the author has no obligation to us. It's MIT licensed, so you can make your own fork with the patches you need and use that. Or even simpler, use bun patch in your project and just subscribe to this issue to see if it eventually gets patched upstream and you no longer need a workaround. |
Important
This bug only appears when
NODE_ENV=production
Folder structure
Files
index.html -> fill in with any generic HTML content.
Note
indexHTML
istrue
by default, but I set it to true explicitly anywaysVersions
Bun
-> 1.1.31elysia
-> 1.1.20@elysiajs/static
-> 1.1.1Tests
GET http://localhost:8080/
-> (redirect)http://localhost:8080
->NOT_FOUND
GET http://localhost:8080
->NOT_FOUND
GET http://localhost:8080/test
->NOT_FOUND
GET http://localhost:8080/test/
->NOT_FOUND
GET http://localhost:8080/index.html
-> WorksGET http://localhost:8080/test/index.html
-> WorksConclusion
indexHTML
option in all broken in all shape and form is the latest version. After some testing, the last working version is 1.0.3.The text was updated successfully, but these errors were encountered: