fix(pro): add www→non-www redirect and clean stale Turnstile attributes (#1198)

- Add 301 redirect from www.worldmonitor.app to worldmonitor.app in
  vercel.json to fix Turnstile domain mismatch (site key only allows
  non-www) causing 403 on form submit.
- Remove stale data-sitekey/theme/size attributes from footer
  .cf-turnstile div (explicit rendering sets these via render()).
This commit is contained in:
Elie Habib
2026-03-07 15:29:38 +04:00
committed by GitHub
parent 1600b1253f
commit 6f1210156b
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
{
"ignoreCommand": "if [ -z \"$VERCEL_GIT_PREVIOUS_SHA\" ]; then exit 1; fi; git cat-file -e $VERCEL_GIT_PREVIOUS_SHA 2>/dev/null || exit 1; git diff --quiet $VERCEL_GIT_PREVIOUS_SHA HEAD -- ':!*.md' ':!.planning' ':!docs/' ':!e2e/' ':!scripts/' ':!.github/'",
"crons": [],
"redirects": [
{ "source": "/:path(.*)", "has": [{ "type": "host", "value": "www.worldmonitor.app" }], "destination": "https://worldmonitor.app/:path", "permanent": true }
],
"rewrites": [
{ "source": "/pro", "destination": "/pro/index.html" },
{ "source": "/((?!api|assets|favico|map-styles|data|textures|pro|sw\\.js|manifest\\.webmanifest|offline\\.html|robots\\.txt|sitemap\\.xml|llms\\.txt|llms-full\\.txt|\\.well-known).*)", "destination": "/index.html" }