You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add trailing-slash redirects, 404 page, and CloudFront error config
- CloudFront function now returns 301 redirect for trailing-slash URLs
instead of silently rewriting (fixes duplicate content issue)
- Generate static 404.html at build time with proper noscript fallback
and noindex meta (fixes soft 404s returning 200)
- Deploy workflow uploads 404.html to S3 with appropriate caching
- Updated setup-cloudfront.sh with custom error response instructions
(404 → /404.html with HTTP 404 status)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
constnoscript404=`<noscript><div style="max-width:800px;margin:0 auto;padding:4rem 2rem;font-family:sans-serif;text-align:center"><h1>Page not found</h1><p>The page you're looking for doesn't exist or has been moved.</p><p><a href="/">Back to homepage</a></p></div></noscript>`
0 commit comments