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
{{ message }}
Repository navigation
infinite redirect with baseUrl + nested tRPC procedure #3990
You'll see the infinite redirect happen when clicking the increment button.
Describe the bug
When configuring nitro/vite to serve from a baseUrl and a call is made to a nested tRPC proc an infinite redirect happens.
Nested tRPC procs craft a url with a . in it, e.g. /trpc/nestedProc.get. I think when the url contains this character, the code introduced in #3817 is hit making nitro think the request is for a static asset. This only seems to happen when baseURL is configured however.
A workaround we've found is to prefix the nested procedure with a character (_ works) that breaks the regex above:
Activity
pi0 commentedon Sep 3, 2026
Should be fixed on mai n