Locating Worker file in static assets (Astro) server from worker

I'm working on a project using Astro as a framework for a Cloudflare Worker, but I'm a bit lost in the project structure. I used the npm create cloudflare@latest command to set up the project, which gave me what looks like a standard Astro project. My main questions are: - Where should I place the Worker code? Or has it already been set up by the Cloudflare package? - In general, where can I find the Worker-specific parts of this project? If anyone has experience with this setup, I'd really appreciate some guidance on navigating the project structure and identifying where these Cloudflare Worker elements fit in. Thanks in advance for any help!
1 Reply
Hello, I’m Allie!
If the Astro project is using SSR then you need to use Astro's Server Endpoints
Docs
Endpoints
Learn how to create endpoints that serve any kind of data
Want results from more Discord servers?
Add your server