Files
blog/package.json
Gabriel Vidal e97299f282 chore: add a repeatable zipgo deploy + fix the one-build-stale search index
There was no deploy path in the repo at all — the site is served by zipgo on
raspy2, but that was done by hand, so `search-project -u blog.dev.gabvdl.xyz`
found nothing and each deploy was ad-hoc. Add `scripts/deploy.sh` (zipgo deploy
CLI, same shape as the other projects), an `npm run deploy`, and the
`zipgo.deploy` host→folder map. Deliberately no og-screenshot step: the site
ships a curated public/og-image.png that a screenshot would only degrade.

Also fix a real bug this surfaced. `prepare-index.js` runs as `postbuild`, i.e.
AFTER astro copies public/ into dist/, so it only ever updated public/ — and
dist/search-index.json (the one that actually ships) held the PREVIOUS build's
index. Every deploy shipped a search index one post behind. It now mirrors the
index into dist/ as well, tolerating a missing dist/ for a bare postbuild run.

Document the deploy and the Gitea/GitHub remote split in the README.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 12:59:18 +02:00

55 lines
1.5 KiB
JSON

{
"name": "blog",
"version": "1.0.1",
"private": true,
"type": "module",
"description": "Gabriel Vidal's personal website / blog, built with Astro (blog.dev.gabvdl.xyz).",
"homepage": "https://blog.dev.gabvdl.xyz",
"scripts": {
"dev": "SITE_URI=http://127.0.0.1:3000 astro dev",
"build": "astro build",
"check": "astro check",
"postbuild": "node ./scripts/search/prepare-index.js",
"preview": "astro preview",
"deploy": "npm run build && ./scripts/deploy.sh"
},
"devDependencies": {
"@astrojs/mdx": "^0.12.1",
"@astrojs/rss": "^1.0.3",
"@astrojs/sitemap": "^1.0.0",
"@astrojs/svelte": "^2.0.0",
"@astrojs/tailwind": "^3.0.0",
"@fontsource/fira-sans": "^4.5.9",
"@tailwindcss/aspect-ratio": "^0.4.0",
"@tailwindcss/forms": "^0.5.0",
"@tailwindcss/line-clamp": "^0.4.2",
"@tailwindcss/typography": "^0.5.2",
"@types/node": "^18.7.14",
"astro": "^2.0.0",
"astro-icon": "^0.8.0",
"globby": "^13.1.2",
"gray-matter": "^4.0.3",
"lunr": "^2.3.9",
"mdx": "^0.3.1",
"svelte": "^3.50.0",
"tailwindcss": "^3.2.4",
"tailwindcss-hyphens": "^0.1.0",
"typescript": "^4.3.5"
},
"dependencies": {
"@astrojs/react": "^2.0.2",
"@astrojs/vercel": "^3.0.0",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"ioredis": "^5.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-responsive-carousel": "^3.2.23"
},
"zipgo": {
"deploy": {
"blog.dev.gabvdl.xyz": "dist"
}
}
}