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
Astro v5.1.1
Node v20.14.0
System Windows (x64)
Package Manager npm
Output server
Adapter @astrojs/vercel
Integrations @astrojs/tailwind
astro-lottie
@astrojs/mdx
@astrojs/svelte
@astrojs/react
@astrojs/sitemap
sitemap-copier
Describe the Bug
When deploying to Vercel with trailingSlash: "always", routes enter an infinite redirect loop. The issue occurs even when directly accessing URLs with trailing slashes. This appears to be a regression in the Vercel adapter's handling of trailing slashes.
Reproduction
The Vercel adapter generates overlapping redirect rules in config.json:
Astro Info
Describe the Bug
When deploying to Vercel with
trailingSlash: "always"
, routes enter an infinite redirect loop. The issue occurs even when directly accessing URLs with trailing slashes. This appears to be a regression in the Vercel adapter's handling of trailing slashes.Reproduction
The Vercel adapter generates overlapping redirect rules in
config.json
:The second pattern matches
/guides/
and attempts to redirect to/guides//
, creating an infinite loop.Steps to Reproduce
/guides/
(either static or dynamic)/guides/
Expected Behavior
/guides
should redirect to/guides/
(once)/guides/
should render the page without redirectingActual Behavior
/guides/
results in "Too Many Redirects" error/guides/
and/guides//
Configuration
Related Issues
Environment
The text was updated successfully, but these errors were encountered: