Environment Files

Use environment files to configure Astro and FastAPI for local and production runs.

Prerequisites

  • Cloned repository
  • Access to required secrets

Required files

  • astro/.env
  • fastapi/.env

Create from examples:

copy astro\.env.example astro\.env
copy fastapi\.env.example fastapi\.env

Expected outcome

Both services can boot with valid credentials and URLs.

Common errors

ErrorCauseFix
Missing env variableIncomplete .env fileCopy all keys from example files
Auth failuresClerk keys mismatchVerify publishable and secret key pairs
API/frontend mismatchWrong base URLsAlign PUBLIC_API_BASE_URL and site URLs

Related pages

Whitepapper

Whitepapper is an API first CMS engine for devs who publish content.

Antk i n