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
19 lines
310 B
JavaScript
19 lines
310 B
JavaScript
// @ts-check
|
|
import { defineConfig } from 'astro/config';
|
|
import node from '@astrojs/node';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
output: 'server',
|
|
adapter: node({
|
|
mode: 'standalone',
|
|
}),
|
|
server: {
|
|
port: 4321,
|
|
host: true,
|
|
},
|
|
image: {
|
|
domains: ['*'],
|
|
},
|
|
});
|