mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
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:
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user