Complete implementation of BIT-349: - Astro 6 SSR with @astrojs/node standalone adapter - Multi-domain config system: reads config/domains/<host>.json on each request - Homepage: HeroSection (3 featured), TrendingBar, LatestGrid, CategorySections - Category page: filterable grid + pagination - Article page: header, body, structured data, related articles, sidebar ad slot - Dark/light theme toggle (no-flash, localStorage-backed) - Sticky responsive header with mobile menu - SEO: meta/OG/Twitter tags, schema.org (WebSite, NewsArticle, BreadcrumbList) - Dynamic /sitemap.xml and /robots.txt (SSR) - BridgeClient with in-process SWR cache (60s fresh / 5min stale) - MockBridgeClient fallback when bridge is unreachable (dev-friendly) - Performance: minimal client JS, lazy images, fetchpriority on LCP - docs/frontend.md added Build passes: npm run build OK Smoke test: all routes 200 (/, /category/:slug, /article/:slug, /robots.txt, /sitemap.xml) Paperclip-Agent: Artur (urlKey artur; id ac1be104-8818-496a-80c5-fbc590a87855) Paperclip-Issue: BIT-349 Paperclip-Run: 407358da-8311-4b0a-9672-dda636bcf974 Co-Authored-By: Paperclip <[email protected]> Made-with: Cursor
1.6 KiB
1.6 KiB
Astro Starter Kit: Minimal
npm create astro@latest -- --template minimal
🧑🚀 Seasoned astronaut? Delete this file. Have fun!
🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.
There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the public/ directory.
🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
👀 Want to learn more?
Feel free to check our documentation or jump into our Discord server.