Skip to content

Conversation

@gakonst
Copy link
Contributor

@gakonst gakonst commented Jan 29, 2026

Summary

Fixes 500 errors when accessing URLs with trailing slashes (e.g. /protocol/ vs /protocol).

Problem

Vocs/Waku's router expects paths without trailing slashes. When a user accesses a URL with a trailing slash, the framework throws "Path must not end with /" and returns a 500 error.

Solution

Add vercel.json with trailingSlash: false to automatically redirect trailing slash URLs to their canonical non-slash versions with a 308 permanent redirect at the edge layer before the request reaches the application.

Testing

  • https://docs.tempo.xyz/protocol/ will redirect to https://docs.tempo.xyz/protocol
  • All existing non-trailing-slash URLs continue to work normally

Thread: https://tempoxyz.slack.com/archives/C09SB72CWJC/p1769729266093459

URLs with trailing slashes (e.g. /protocol/) were returning 500 errors.
This adds vercel.json with trailingSlash: false to automatically
redirect trailing slash URLs to their canonical non-slash versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants