You deploy an Astro project to Vercel but do not include a vercel.json configuration file. What will be the behavior of the deployment?
Think about how Vercel handles popular frameworks by default.
Vercel has built-in support for Astro and can detect it automatically. It runs the correct build commands without needing a vercel.json file.
You want to specify the output directory for your Astro build in vercel.json. Which configuration is correct?
Check the property name that controls the output directory in Vercel's static build config.
The correct property to specify the output directory for static builds is distDir. The source should be package.json with @vercel/static-build as the builder.
After deploying your Astro project to Vercel, you get an error: Cannot find module '@astrojs/renderer-preact'. What is the most likely cause?
Think about what causes module not found errors in deployed environments.
If a dependency is used in the project but not listed in package.json, Vercel will not install it during deployment, causing this error.
You have a dynamic route file src/pages/blog/[slug].astro in your Astro project. After deploying to Vercel, what URL path will serve the page for slug 'hello-world'?
Recall how dynamic route parameters map to URL paths in Astro.
Astro uses square brackets to define dynamic segments. The URL replaces [slug] with the actual value, so the path is /blog/hello-world.
Astro supports server-side rendering (SSR). When deploying an SSR Astro project to Vercel, how does Vercel execute the SSR code?
Consider how Vercel supports dynamic server code execution.
Vercel uses serverless functions to run SSR code on demand, allowing Astro to render pages dynamically per request.
