I'm working on a React Router application deployed on Vercel that requires internationalization using i18next. According to the documentation, we should use Vercel's handleRequest from @vercel/react-router/entry.server for optimal performance.
https://vercel.com/docs/frameworks/react-router#using-a-custom-app/entry.server-file
However, I'm facing a challenge in integrating remix-i18next with this setup. The remix-i18next documentation requires wrapping the app with I18nextProvider during server-side rendering, but Vercel's handleRequest doesn't seem to provide a way to customize the root component.
https://github.com/sergiodxa/remix-i18next/tree/v7.2.0?tab=readme-ov-file#server-side-configuration
Questions: Is there a way to customize the root component when using Vercel's handleRequest?
Any guidance or examples would be greatly appreciated!