Integrating Cloudflare Workflows with Astro
I'm trying to integrate the newly announced Cloudflare Workflows with an existing Astro project (not using the starter template) and running into some TypeScript issues.
Issue 1: Module Resolution
Getting error on import:
Issue 2: Type Arguments
Example from docs throwing TS error:
Current setup
Questions:
What's the correct way to set up Workflows in an existing Astro project?
What should the folder structure look like?
Are there any specific configuration steps needed for TypeScript to recognize the cloudflare:workers module?
How do we properly type the json<T>() response?
Any help or guidance would be greatly appreciated! 🙏
0 Replies