GAROPABA::--:-- AVAILABLE::REMOTE FULLSTACK ROLE LCP::… STACK::ASTRO · PYTHON · TYPESCRIPT
PTENES
← Projects
Site & SEO

Publish in the panel and the site updates itself

Static pages generated at build time to show up in search, with my own PHP and MySQL panel for someone who doesn't touch code. Publishing triggers the build and deploy on its own, through GitHub Actions.

AstroReactPHPMySQLGitHub Actions
Status In production
Year 2026
Context Own product, live
Live Open ↗
Push → live
Deploy with no intervention
~1 MB
JS cut per page in the first stage

The problem

A static site shows up in search and gets stuck the moment someone without code needs to change a text. A dynamic panel fixes the editing and usually wrecks the search ranking. I wanted both: good indexing and updates with no editor.

What I built

  • Static pages generated at build time, indexable, with React on top for navigation.
  • My own PHP and MySQL API with an admin panel: item registration with photos, a blog and contacts.
  • Publishing with no manual build: publishing in the panel triggers a webhook, GitHub Actions rebuilds and sends it over FTP.
  • A public catalogue endpoint, consumed today by the CRM, which mirrors the items instead of keeping a parallel registry.

Technical decisions

Fixing image orientation on upload. Phone photos store rotation in EXIF metadata, which the resizing library ignores, and thumbnails came out sideways. The fix rotates the pixels according to EXIF before resizing, covering all eight possible cases, and rewrites the file without the metadata.

One registry, with an explicit contract. When the CRM needed the same items, the easy way out was duplicating the table. It became a contract instead: the item registers on the site, the CRM only reads, and renaming a field there breaks the other system, documented on both sides.

How I verified it

Diagnosing performance with a number, not a hunch. The complaint was “the site feels slow”. Measuring it, it was around 4.3 MB of JavaScript, most of it a compiler running in the browser on every visit. I attacked the lower-risk cause first: internal pages were loading the library’s development build. Switching it cut around 1 MB per page, verified live, no console errors.

The definitive fix (compiling at build time, removing the browser compiler) is planned and has not landed yet. Measuring and prioritising is not the same as having solved it.

The incident, and the residue the first cleanup missed. The site was defaced through a compromised shared hosting account, via another site on the same account, not through its own code. Documented response: identifying the vector, rotating every credential, a clean redeploy, removing the malicious files and hardening headers.

Weeks later, I found residue from the same attack in search metrics: a folder answering differently to the crawler and the visitor, injecting spam into the index since before the defacement showed up. Handled with an explicit content-removed response and a removal request in search console. The lesson: “clean” needs evidence, not the assumption that the symptom went away.