Skip to content

Repository files navigation

PyGym - The best platform for Python Learners.

SEO & Deployment

  • npm run build runs vite build followed by tsx scripts/prerender.ts, which generates static, crawler-friendly HTML for every route (home, /course, every /lesson/:id, every /quiz/:moduleId, /projects, every /project/:id), plus sitemap.xml and robots.txt in dist/.
  • Set the APP_URL environment variable at build time so canonical URLs, Open Graph tags, and the sitemap use your real domain (e.g. APP_URL=https://pygym.nirimon.site npm run build). It falls back to https://pygym.nirimon.site.
  • App routing is URL-driven (path-based). Each route is pre-rendered to a real file (dist/lesson/<id>/index.html), so deep links and refreshes work on static hosts without SPA-rewrite rules.
  • Submit /sitemap.xml in Google Search Console and Bing Webmaster Tools.