first commit
This commit is contained in:
14
demos/preview/src/worker.ts
Normal file
14
demos/preview/src/worker.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Preview Worker Entrypoint
|
||||
*
|
||||
* Exports:
|
||||
* - default: Astro handler
|
||||
* - EmDashPreviewDB: Durable Object class for preview databases
|
||||
*/
|
||||
|
||||
import handler from "@astrojs/cloudflare/entrypoints/server";
|
||||
|
||||
// Export the DO class so Cloudflare can instantiate it
|
||||
export { EmDashPreviewDB } from "@emdashcms/cloudflare/db/do";
|
||||
|
||||
export default handler;
|
||||
Reference in New Issue
Block a user