I couldn’t send an html file either. I wonder what the problem is?
import { Elysia } from 'elysia'
import { html } from '@elysiajs/html'
import { staticPlugin } from '@elysiajs/static'
const app = new Elysia();
app.use(staticPlugin({ assets : "./public"}))
app.use(html())
app.get('/file', async () => Bun.file('./public/index.html'))
app.listen(3000)
index.html
path
Error:
Error Message
I want to link a static html fee with elysia.js but I get a file not found error.