ci / build-and-test (push) Canceled after 0s
Replace the @astrojs/sitemap integration with two handwritten endpoints under src/pages/ so we can attach a Google News <news:news> block to each aviso detail URL. The integration already emitted the news namespace but never the per-URL blocks, so the project was not eligible for Google News indexing. - src/pages/sitemap-index.xml.ts: single-child sitemapindex pointing at /sitemap-0.xml. - src/pages/sitemap-0.xml.ts: home + huella + one entry per aviso from getAvisosAmbientales. Each aviso carries <news:news> with publication name (fuente), language ca, publication_date (ISO), title and keywords (temas joined). - astro.config.mjs: drop the @astrojs/sitemap integration; remove the dependency from package.json and pnpm-lock.yaml. - e2e: add a test asserting the news namespace and at least one <news:news> block with publication_date and language. 22/22 e2e pass; check and eslint clean.
15 lines
557 B
JavaScript
15 lines
557 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import preact from '@astrojs/preact';
|
|
|
|
// Salida estática pura: HTML/JSON servidos por Caddy, sin proceso Node en
|
|
// producción. Los datos se consultan a Postgres una única vez, en build-time
|
|
// (ver src/lib/db.ts). El "servidor" es solo el rebuild disparado por n8n.
|
|
export default defineConfig({
|
|
output: 'static',
|
|
site: 'https://www.eivissaenvironmentalwatch.es',
|
|
integrations: [preact()],
|
|
build: {
|
|
inlineStylesheets: 'auto', // inline CSS pequeños, externos los grandes (ej. Leaflet)
|
|
},
|
|
});
|