Include all files from folder in all functions in React Router v7

Hello!

I have a React Router v7 app with i18next, where I want to insert texts server-side. I am using the i18next-fs-backend which reads translations from a file based on file path parameters. Since these file path parameters are something specific for i18next, Vercel NFT cannot resolve the path to the files.
loadPath: '/locales/{{lng}}/{{ns}}.json'
So the files are not included in the build. This can be solved by either importing the texts or adding a path.resolve somewhere in the file to the parent folder which doesn’t have these parameters. If the texts are to be imported, all languages have to be imported individually. With path.resolve, we skip that since all the files are included. However, this dangling path.resolve with seemingly no use is no good when it comes to maintainability. Currently we have this line with a comment explaining why everything breaks if it is removed even if it seems unused.

So my wish is to use vercel.json or something similar to include all files from a specific folder e.g. /public/locales/ in all cloud functions created by the @vercel/react-router preset. Is this possible today?