astro dev?In Astro, running astro dev starts the development server. What is the main behavior you will see in the browser when you open the local server URL?
Think about what a developer needs when actively working on a site.
Running astro dev starts a development server with live reload. This means when you save changes, the browser updates automatically, making development faster and smoother.
Astro uses commands to build the site for production. Which command correctly triggers the build process?
Think about the command that prepares the site for deployment.
astro build compiles your site into optimized static files ready for production deployment.
You run astro dev and edit a component file, but the browser does not update automatically. What is the most likely cause?
Consider where your files are located relative to the project.
The Astro dev server watches files inside the project root folder. If you edit files outside this root, changes won't trigger reloads.
astro build?After running astro build, which of the following best describes the output files in the dist/ folder?
Think about what a production build should contain.
The dist/ folder contains fully built static files: HTML, optimized CSS/JS bundles, and assets, all ready to be uploaded to a web server.
Astro supports hot module replacement (HMR) during development. Which statement best describes how the dev server updates components when you change their source code?
Consider how modern dev servers improve developer experience by updating parts of the page.
Astro's dev server uses HMR to update only the changed components in the browser, avoiding full reloads and keeping the app state intact when possible.
