Skip to content

Promote dev → main - #20

Merged
AdrianLlopart merged 1 commit into
mainfrom
dev
Jun 21, 2026
Merged

Promote dev → main#20
AdrianLlopart merged 1 commit into
mainfrom
dev

Conversation

@AdrianLlopart

Copy link
Copy Markdown
Contributor

Automated promotion of devmain, dispatched by @AdrianLlopart.

The narrow rewrite `/privacy -> /index.html` 404s on Vercel (production
returns x-vercel-error: NOT_FOUND for /privacy, breaking the footer Privacy
link). Replace it with the documented Vite-on-Vercel SPA catch-all that
rewrites every non-/api path to /index.html, so the client router (App.jsx
switches on window.location.pathname) can render /privacy — and any future
client route — on a hard navigation.

- `/api/*` is excluded so the contact serverless function is never rewritten;
  static assets keep filesystem precedence over the rewrite.
- Verified in a headless browser: index.html served at /privacy renders the
  "Privacy notice" page (HTTP 200, pathname preserved).

Pre-existing bug (rewrite added in bd44a88); unrelated to the security headers.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0138qS6baPZutQ7s2fMbfNv3
@AdrianLlopart
AdrianLlopart merged commit 4b07273 into main Jun 21, 2026
3 checks passed
@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
website Ready Ready Preview, Comment Jun 21, 2026 9:04am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant