You have an Astro project and you deploy it to Cloudflare Pages but leave the build command field empty. What will Cloudflare Pages do during deployment?
Cloudflare Pages requires an explicit build command to know how to build your site.
Cloudflare Pages does not guess the build command. If you leave it empty, the deployment fails with a build error because it doesn't know how to build your Astro project.
Astro outputs the built files to a folder. Which folder should you specify as the output directory in Cloudflare Pages settings?
Check the Astro config or default output folder after running 'astro build'.
Astro by default outputs the built site to the 'dist' folder. This folder contains the static files to be deployed.
You deployed your Astro site to Cloudflare Pages. The deployment succeeded, but when you visit the site URL, you get a 404 error. What is the most likely cause?
Think about how Astro handles base paths and routing when deployed under a subpath.
If your site is deployed under a subpath (like a repo name), you must set the base property in astro.config.mjs to that path. Otherwise, links and assets will point to wrong URLs causing 404 errors.
You want to use environment variables in your Astro site deployed on Cloudflare Pages. When are these variables available during the deployment lifecycle?
Consider when the site is built and when it is served.
Cloudflare Pages injects environment variables during the build step. Since Astro builds static files, variables are baked in at build time. They are not available dynamically at runtime unless you use Cloudflare Workers separately.
Choose the best explanation of why Cloudflare Pages is a good choice for hosting Astro sites.
Think about how static sites and CDNs work together.
Cloudflare Pages hosts static sites and serves them via a global content delivery network (CDN). This means your Astro site loads quickly everywhere without needing a server to render pages dynamically.
