first commit
This commit is contained in:
18
demos/cloudflare/src/worker.ts
Normal file
18
demos/cloudflare/src/worker.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Custom Worker Entrypoint for EmDash
|
||||
*
|
||||
* Exports:
|
||||
* - default: Astro handler
|
||||
* - PluginBridge: WorkerEntrypoint for sandboxed plugin RPC
|
||||
*/
|
||||
|
||||
import handler from "@astrojs/cloudflare/entrypoints/server";
|
||||
|
||||
// Re-export PluginBridge from the cloudflare sandbox runtime
|
||||
// This makes it available via ctx.exports.PluginBridge
|
||||
export { PluginBridge } from "@emdashcms/cloudflare/sandbox";
|
||||
|
||||
/**
|
||||
* Default export - just re-export the Astro handler
|
||||
*/
|
||||
export default handler;
|
||||
Reference in New Issue
Block a user