Type something to search...

Blog

How to set environment variables in Astro?

How to set environment variables in Astro?

To set environment variables in Astro, put them in a .env file in your project root, or set them in your shell or hosting dashboard, and re

Dive Deeper
How to fetch data at build time in Astro?

How to fetch data at build time in Astro?

To fetch data at build time in Astro, call fetch() with await in the frontmatter script of any .astro page or component. Astro supports top

Dive Deeper
How does file-based routing work in Astro?

How does file-based routing work in Astro?

File-based routing in Astro means every supported file inside src/pages/ becomes a URL on your site, and the file's path decides what that URL

Dive Deeper
What are .astro files and how do they work?

What are .astro files and how do they work?

.astro files are Astro's own component format. Each one has two parts: a component script between --- fences at the top, where you write Ja

Dive Deeper
Is Astro a good choice for content-heavy websites?

Is Astro a good choice for content-heavy websites?

Yes, Astro is one of the best choices for content-heavy websites. It was designed specifically for content-driven sites such as blogs, documentat

Dive Deeper
How to use the Fragment component in Astro?

How to use the Fragment component in Astro?

The Fragment component in Astro groups several elements together without adding a wrapper element to the HTML. You write `...</Fragment

Dive Deeper