Update Site source
This commit is contained in:
commit
9a4ce930c7
126 files changed
+25723
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { WorkerEntrypoint } from "cloudflare:workers";
|
||||
import binding from "virtual:sites-connector-preview";
|
||||
|
||||
// Local-only RPC target. The Site entrypoint scopes it to each request; the Node
|
||||
// adapter relays each call to the owning agent.
|
||||
export class ConnectorPreview extends WorkerEntrypoint {
|
||||
async getContext() {
|
||||
return binding.getContext?.() ?? { status: "binding_unavailable" };
|
||||
}
|
||||
|
||||
async invoke(connectorId, actionName, args) {
|
||||
return binding.invoke(connectorId, actionName, args);
|
||||
}
|
||||
}
|
||||
export default { fetch() { return new Response("Not found", { status: 404 }); } };
|
||||
Reference in new issue
Block a user