remix basename
config automatically redirect in production build for root routes
#10172
Replies: 1 comment
-
Found the issue! it was cause by this single line of code remix/packages/remix-serve/cli.ts Line 135 in b70e0fd catch all with express.static automatically adding trailing slash fixed with adding express adapter to my remix app and adding
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi im currently using remix with
basename
and use loadbalancer to point into my remix appi found this issue
it's completely different routes, and look like remix automatically do permanent redirect when hitting the first one with basename
this is causing "TOO_MANY_REDIRECTS" error when i try to point my load balancer to my remix app
No Basename

With Basename

my load balancer rules got (TOO_MANY_REDIRECTS)

some workaround with this rules BUT only

sfl/, and
sfl` would go to different appsanother workaround just put both directed to the same remix app

i wonder if there is anything to do so i can access both
sfl/
andsfl
without gettingTOO_MANY_REDIRECTS
,do i need to remove trailing slash?
thanks!
Beta Was this translation helpful? Give feedback.
All reactions