mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 16:16:02 +00:00
feat: add ability to serve static by using dynamic imports (#197)
* feat: add ability to serve static by using dynamic imports * serveStaticViaImport: make manifest optional * serveStaticViaImport: add error log
This commit is contained in:
@@ -32,8 +32,8 @@ export async function createApp<Env = NodeEnv>(
|
||||
registerLocalMediaAdapter();
|
||||
return await createRuntimeApp(
|
||||
{
|
||||
...config,
|
||||
serveStatic: serveStatic({ root }),
|
||||
...config,
|
||||
},
|
||||
// @ts-ignore
|
||||
args ?? { env: process.env },
|
||||
|
||||
Reference in New Issue
Block a user