The src/pages/ folder holds your frontend routes. Each .astro file is a page, such as src/pages/index.astro for your home page.
src/pages/ also holds backend HTTP endpoints under src/pages/api/, where each .ts file is auto-discovered as a route. For example, src/pages/api/users.ts is served at /api/users.
Last updated: 10 November 2026