feat: add ssr adapter and flags content collection #4

Merged
TimCane merged 3 commits from feat/ssr-adapter-content-schema into main 2026-06-17 23:12:42 +01:00
TimCane commented 2026-06-17 23:11:38 +01:00 (Migrated from github.com)

Summary

  • add @astrojs/node adapter (standalone); pages stay static by default, server routes opt in with prerender = false
  • define the flags content collection schema in src/content.config.ts: continent + code + name + flag image, plus required colours (fixed enum) and features (free tags)
  • backfill all 197 flags with colours and features for generating multiple-choice options

Test plan

  • pnpm check (0 errors)
  • pnpm build (content collection validates all 197 entries against the schema; hybrid build emits server + prerendered index)
## Summary - add @astrojs/node adapter (standalone); pages stay static by default, server routes opt in with `prerender = false` - define the flags content collection schema in src/content.config.ts: continent + code + name + flag image, plus required `colours` (fixed enum) and `features` (free tags) - backfill all 197 flags with colours and features for generating multiple-choice options ## Test plan - pnpm check (0 errors) - pnpm build (content collection validates all 197 entries against the schema; hybrid build emits server + prerendered index)
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
TJC/thisisapresentationonflags.lol!4
No description provided.