Static Astro site for ilovecoding.org, deployed on Netlify.
npm install
npm run dev # http://localhost:4321
npm run build # outputs dist/
npm run previewAll content is static JSON in src/data/ (exported from the old CMS):
courses.json: courses with their lessons →/courses/:courseand/courses/:course/lessons/:lessonblogs.json→/blog/:slug(active: falseposts are built but not listed)pages.json→/pages/:slugreviews.js: testimonialscurriculum.ts: the/curriculumroadmap. Items that link to a course/lesson that no longer exists are shown as "Not currently available".
pages/thanks-xxxwhen a user successfully signs up to an optionpages/confirmed-xxxwhen a user confirms an email or an actionpages/welcome-xxxwhen a user purchases successfully
public/_redirects (Netlify). At build time, astro.config.mjs appends one redirect per lesson from the
legacy /lessons/:slug URL to /courses/:course/lessons/:slug.
Google Analytics 4 is loaded only when PUBLIC_GA_MEASUREMENT_ID is set (see .env.example).
Set it in Netlify under Site configuration → Environment variables.