Blog

How to add global styles in Astro?
The simplest way to add global styles in Astro is to create a CSS file, for example src/styles/global.css, and import it in the frontmatter of
Dive Deeper
How to use a headless CMS with Astro?
To use a headless CMS with Astro, fetch your content from the CMS's API and turn it into a content collection, either with a custom loader in `sr
Dive Deeper
How to mix prerendered and on-demand pages in Astro?
To mix prerendered and on-demand pages in Astro, install a server adapter and then control each route with the prerender export. In the def
Dive Deeper
How to add internationalized (i18n) routing in Astro?
To add internationalised routing in Astro, add an i18n object to astro.config.mjs with a list of locales and a defaultLocale, then create o
Dive Deeper
How to optimize images with the Astro Image component?
To optimize images with the Astro Image component, put your image files in src/ (for example src/assets/), import them into a component, and
Dive Deeper
What are Astro integrations and how to add them?
Astro integrations are packages that plug into Astro's build process and dev server to add features your project doesn't have out of the box, suc
Dive Deeper