When I set alwaysStatic to true I get this errors:
ReferenceError: Bun is not defined
at staticPlugin (C:\git\demo\node_modules\@elysiajs\static\dist\cjs\index.js:174:20)
Can I use this plugin with node.js?
My code:
new Elysia({ adapter: node() })
.use(routeApi)
.use(staticPlugin({
indexHTML: true,
alwaysStatic: true,
prefix: '/',
}))
.listen(3000, ({ hostname, port }) => {
console.log(`🦊 Elysia is running at ${hostname}:${port}`);
});
@elysiajs/static version is 1.2.0.
When I set
alwaysStatictotrueI get this errors:Can I use this plugin with node.js?
My code:
@elysiajs/staticversion is1.2.0.