public commit

This commit is contained in:
dswbx
2024-11-16 12:01:47 +01:00
commit 90f80c4280
582 changed files with 49291 additions and 0 deletions

View File

@@ -0,0 +1 @@
export * from "./remix.adapter";

View File

@@ -0,0 +1,12 @@
import { App, type CreateAppConfig } from "../../App";
let app: App;
export function serve(config: CreateAppConfig) {
return async (args: { request: Request }) => {
if (!app) {
app = App.create(config);
await app.build();
}
return app.fetch(args.request);
};
}