Skip to content

Commit 33e7ae2

Browse files
cj-vanaclaude
andcommitted
fix: Remove redirect loop causing site to fail loading
The catch-all redirect `/*` to `/404` and trailing slash redirect `/*/` were conflicting and causing an infinite redirect loop. Next.js handles its own routing and 404 pages, so these redirects are unnecessary. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 009e175 commit 33e7ae2

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

netlify.toml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,7 @@
8282
to = "/"
8383
status = 301
8484

85-
# Handle trailing slashes consistently (optional, Next.js handles this)
86-
[[redirects]]
87-
from = "/*/"
88-
to = "/:splat"
89-
status = 301
90-
91-
# Custom 404 handling (Next.js App Router handles this, but explicit is good)
92-
[[redirects]]
93-
from = "/*"
94-
to = "/404"
95-
status = 404
85+
# Let Next.js handle all routing and 404s - don't add catch-all redirects
9686

9787
# Edge Functions configuration (if needed in future)
9888
[functions]

0 commit comments

Comments
 (0)