No description
Find a file
Calum Muir fc644510af Add Sanity CMS integration
- Install @sanity/client + @portabletext/to-html
- studio/ — Sanity v3 project with post schema (title, slug, date, category,
  summary, cover image with hotspot, Portable Text body). Run with
  `cd studio && npm install && sanity dev` after setting SANITY_STUDIO_PROJECT_ID.
- src/lib/sanity.ts — typed client, GROQ queries, Portable Text → HTML conversion
- src/lib/news.ts — adds getArticles() / getArticle() async functions that prefer
  Sanity when SANITY_PROJECT_ID is set; fall back to local markdown otherwise
- events/index.astro, events/[slug].astro, events/page/[page].astro — switch to
  async getArticles()/getArticle(); [slug].astro drops getStaticPaths() in favour
  of SSR request-time fetch with redirect-on-not-found
- .env.example — documents SANITY_PROJECT_ID / SANITY_DATASET / SANITY_API_TOKEN

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 11:50:35 +00:00
client Update support and about copy 2025-12-27 16:38:08 +00:00
functions/api Redesign forms to multi-step; add sponsor section and content updates 2026-05-23 17:03:37 +02:00
public Redesign forms to multi-step; add sponsor section and content updates 2026-05-23 17:03:37 +02:00
server Initial commit 2025-12-21 10:34:50 +00:00
shared Initial commit 2025-12-21 10:34:50 +00:00
src Add Sanity CMS integration 2026-06-07 11:50:35 +00:00
studio Add Sanity CMS integration 2026-06-07 11:50:35 +00:00
.env.example Add Sanity CMS integration 2026-06-07 11:50:35 +00:00
.gitignore convert to astro 2025-12-27 21:55:52 +00:00
.replit Saved progress at the end of the loop 2025-12-21 10:36:30 +00:00
astro.config.mjs chore: switch to Node adapter for server-side rendering 2026-05-23 17:38:24 +02:00
components.json Initial commit 2025-12-21 10:34:50 +00:00
drizzle.config.ts Initial commit 2025-12-21 10:34:50 +00:00
package-lock.json Add Sanity CMS integration 2026-06-07 11:50:35 +00:00
package.json Add Sanity CMS integration 2026-06-07 11:50:35 +00:00
postcss.config.js Initial commit 2025-12-21 10:34:50 +00:00
tailwind.config.ts convert to astro 2025-12-27 21:55:52 +00:00
tsconfig.json convert to astro 2025-12-27 21:55:52 +00:00
vite.config.ts Initial commit 2025-12-21 10:34:50 +00:00
wrangler.jsonc Fix wrangler.jsonc for Cloudflare Workers deployment 2026-04-30 15:00:21 +00:00