You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
newElysia({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.
The text was updated successfully, but these errors were encountered:
When I set
alwaysStatic
totrue
I get this errors:Can I use this plugin with node.js?
My code:
@elysiajs/static
version is1.2.0
.The text was updated successfully, but these errors were encountered: