Files
EivissaEnvirnmentalWatch/package.json
T
itziarZG 0abbd77828
ci / build-and-test (push) Canceled after 0s
feat(seo): per-aviso OG images generated at build
scripts/build-og-image.ts (renamed from .mjs, run via tsx) now also
queries getAvisosAmbientales and rasterizes a 1200x630 PNG per aviso at
public/og/avis/[origen]-[id].png. The SVG is built inline from the aviso
fields: title (truncated to 110 chars), summary (200), source and
municipio as meta line. [slug].astro passes /og/avis/<slug>.png + the
title as alt to BaseLayout, which emits og:image, og:image:alt,
twitter:image and twitter:image:alt automatically.

e2e: detail page test now also asserts og:image points at the per-aviso
PNG and that the PNG returns 200. 20/20 e2e pass; check and eslint
clean.
2026-07-26 22:15:52 +02:00

47 lines
1.2 KiB
JSON

{
"name": "ibiza-environmental-watch",
"type": "module",
"version": "0.1.0",
"private": true,
"engines": {
"node": ">=22.12.0"
},
"scripts": {
"dev": "astro dev",
"prebuild": "tsx scripts/build-og-image.ts && astro check && eslint .",
"build": "astro build",
"preview": "astro preview",
"check": "astro check",
"check:watch": "astro check --watch",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"pretest:e2e": "astro check && astro build",
"test:e2e": "playwright test",
"test:e2e:install": "playwright install --with-deps chromium"
},
"dependencies": {
"@astrojs/preact": "^6.0.1",
"@astrojs/rss": "^4.0.19",
"@astrojs/sitemap": "^3.7.3",
"astro": "^7.1.3",
"leaflet": "^1.9.4",
"pg": "^8.13.0",
"preact": "^10.24.3"
},
"devDependencies": {
"@astrojs/check": "^0.9.4",
"@axe-core/playwright": "^4.12.1",
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.62.0",
"@types/leaflet": "^1.9.12",
"@types/pg": "^8.11.10",
"axe-core": "^4.12.1",
"eslint": "^9.39.5",
"eslint-plugin-astro": "^3.0.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"tsx": "^4.23.1",
"typescript": "^5.6.3",
"typescript-eslint": "^8.65.0"
}
}