Skip to content

Commit d4282f0

Browse files
maskedsyntaxclaude
andcommitted
Enable clean URLs on Vercel so sub-pages resolve
The static build emits <route>.html files, but Vercel was not mapping extensionless paths to them, so direct loads of /get, /ocd, /toolkit, /blog, etc. returned 404 (they only worked via client-side navigation). This broke the ad landing page and returned 404s to crawlers on every sub-page. cleanUrls serves /get from get.html and redirects .html to the clean URL; trailingSlash:false keeps canonicals consistent. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent f488d1e commit d4282f0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

website/vercel.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
22
"buildCommand": "npm run build",
3-
"outputDirectory": "build"
3+
"outputDirectory": "build",
4+
"cleanUrls": true,
5+
"trailingSlash": false
46
}

0 commit comments

Comments
 (0)