Blog

What are Astro Actions and how do they work?
Astro Actions are type-safe backend functions that you define once on the server and then call from the browser as if they were ordinary async fu
Dive Deeper
What are Astro adapters and which one should you choose?
An Astro adapter is an integration that builds the server part of your project for a specific runtime, such as Node.js, Vercel Functions, Netlify
Dive Deeper
How to build API endpoints in Astro?
To build an API endpoint in Astro, create a .js or .ts file in src/pages/ and export a function named after an HTTP method, such as GET or
Dive Deeper
How to add user authentication to an Astro site?
To add user authentication to an Astro site, install an adapter so pages can run on demand, choose an auth library such as Better Auth or a h
Dive Deeper
How to add pagination to an Astro blog?
To add pagination to an Astro blog, create a dynamic page such as src/pages/blog/[...page].astro, load and sort your posts inside `getStaticPaths()
Dive Deeper
How to cache on-demand rendered pages in Astro?
To cache on-demand rendered pages in Astro, configure a cache provider with the top-level cache option in astro.config.mjs, then tell Astro w
Dive Deeper