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:
dswbx authored and GitHub committed 2025-07-22 20:13:10 +02:00
1 parent ea372a8125
commit 1ec3ba0e92
5 files changed
+62 -4

No files matched your search

+1 -1
View File
@@ -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 },