Update code

This commit is contained in:
User
2026-03-12 12:47:56 +08:00
parent 92e7fc5bda
commit 9dab61345c
9383 changed files with 1463454 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
// src/adapter/netlify/conninfo.ts
var getConnInfo = (c) => ({
remote: {
address: c.env.context?.ip
}
});
export {
getConnInfo
};

View File

@@ -0,0 +1,9 @@
// src/adapter/netlify/handler.ts
var handle = (app) => {
return (req, context) => {
return app.fetch(req, { context });
};
};
export {
handle
};

View File

@@ -0,0 +1,2 @@
// src/adapter/netlify/index.ts
export * from "./mod.js";

View File

@@ -0,0 +1,7 @@
// src/adapter/netlify/mod.ts
import { handle } from "./handler.js";
import { getConnInfo } from "./conninfo.js";
export {
getConnInfo,
handle
};