You deploy your Astro project to Netlify but forget to add a netlify.toml file. What will Netlify do by default?
Think about how Netlify handles projects without explicit config files.
Netlify tries to detect build commands and publish directories automatically if no netlify.toml is present. It does not fail immediately or prompt for files.
Choose the correct netlify.toml snippet that sets the build command to npm run build and publishes the dist folder.
Remember the TOML syntax for key-value pairs uses = and double quotes for strings.
In TOML, keys and values are separated by = and string values must be in double quotes. Option D follows this correctly.
You deployed your Astro site to Netlify. The build fails with the error: sh: 1: astro: not found. What is the most likely cause?
Think about what the error astro: not found means in a build environment.
The error means the build system cannot find the Astro CLI. This usually happens if dependencies were not installed before running the build command.
After running npm run build on an Astro project, which folder should be set as the publish directory in Netlify to serve the site correctly?
Check the Astro documentation for the default output folder after build.
Astro outputs the built site files into the dist folder by default, which should be the publish directory on Netlify.
You want to use environment variables in your Astro project deployed on Netlify. Which statement best describes how Netlify manages these variables during build and runtime?
Consider when environment variables are needed in static site generation.
Netlify injects environment variables during the build step, so they can be used to generate static content. They are not available at runtime for static sites.
