Commit graph

2 commits

Author SHA1 Message Date
d4eca5846d
SEO: Google kann Inhalte laden, sieht Deutsch, alte Adressen per 301
- robots.txt sperrt /api nicht mehr (Google lädt beim Rendern alle Inhalte
  und Bilder über die API); API-Antworten tragen dafür X-Robots-Tag: noindex
- Suchmaschinen bekommen immer die deutsche Seite statt der englischen
- page.php: 301 von Adressen der alten Website (/car-hifi/, /oldtimer/,
  /umbauten-einbauten/..., /ueber-uns/ ...) und von Adressen mit "/" am Ende;
  unbekannte Adressen liefern echten Status 404
- Modellbilder auf der Markenseite mit Alt-Text

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E4MG4y7kh1e72NTWq98Q8M
2026-10-27 00:18:26 +00:00
Maaxxs
96aa799d43 Consolidate the site onto a single branch: main now carries the build output
The client's hosting (All-Inkl) has no GitHub integration, so the
two-branch model - source on main, CI force-pushing the built hifi/
folder to a machine-generated deploy branch for Plesk to pull - doesn't
work there. main is now simultaneously the source of truth and the
deployable artifact:

- hifi/index.html, hifi/assets/, favicon, robots.txt and hifi/api/vendor
  are committed instead of git-ignored. Secrets (db.php, setup.php,
  ga-service-account.json) stay ignored as before.
- A prebuild script wipes hifi/assets + index.html before every vite
  build, so the tree always holds exactly the current build - this was
  the stale-hash-chunk problem that originally justified ignoring the
  output (emptyOutDir stays false to protect hifi/api). Builds are
  deterministic: rebuilding without source changes yields zero diffs.
- .github/workflows/build-deploy.yml is deleted; nothing writes to the
  deploy branch anymore. The convention is to run npm run build before
  committing (DEPLOY.md documents the workflow, the All-Inkl setup via
  SSH clone/pull with docroot on <checkout>/hifi, and the Plesk test
  server switch from deploy to main).

The remote deploy branch is left in place for now so the Plesk test
server keeps working until its Git source is switched to main; it can
be deleted afterwards.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-20 06:59:33 +02:00