Cloudflare build fails: missing type alias
Cloudflare Pages build kept failing with Type 'HospitalResult' is not exported. Locally astro check was happy. The reason: tsconfig.json had "include": ["src"] but the file with the type lived at src/data/types.ts — and git status showed it as untracked because I forgot to git add.
Local TS resolves untracked files fine if they’re in the working tree. CI clones from a SHA and only sees what was committed. git add is part of “writing the code”, not part of “publishing it”. I trip over this maybe once a year.