feat: astro built-ins — news pagination, prefetch, RSS, OG/SEO meta, TOC scrollspy (Starlight-pattern)
This commit is contained in:
@@ -3,6 +3,14 @@ import { defineConfig } from 'astro/config';
|
||||
// Static output (zero runtime) — the whole point of the git-based approach.
|
||||
export default defineConfig({
|
||||
output: 'static',
|
||||
// Placeholder domain until the real one exists — only used to build absolute
|
||||
// URLs (canonical, og:*, RSS, sitemap). Swap once the portal has a home.
|
||||
site: 'https://portal.ctao.org',
|
||||
// Built-in prefetch on every internal link (no per-link attributes needed).
|
||||
// Default 'hover' strategy: near-instant navigation without the bandwidth
|
||||
// cost of 'viewport' on a 24-card grid; auto-falls back to 'tap' on
|
||||
// data-saver / slow connections (Astro handles that).
|
||||
prefetch: { prefetchAll: true },
|
||||
redirects: { '/telescopes': '/proposals' },
|
||||
server: { port: 4321, host: true },
|
||||
vite: {
|
||||
|
||||
Reference in New Issue
Block a user