-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
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
.
n4bb12, mirismaili and itsjavi
Metadata
Metadata
Assignees
Labels
No labels