#Elysia index.html

1 messages · Page 1 of 1 (latest)

boreal citrus
#

I'm using Elysia with the staticPlugin. I can hit a local URL that ends with /index.html, but if I omit that part it doesn't default to opening index.html. Instead I get the error message "MacOS does not support sending non-regular files". Can I configure Elysia to default to opening index.html when the URL does not end in a file name?

vast oar
#

you can manually route / to index.html

#

app.get('/', () => Bun.file('./path/to/index.html'))