The property" includeFiles" in vercel.json points to the wrong path
Opened this issue · 0 comments
Gbuomprisco commented
Hi there. I am trying to get Vercel to upload some static files that are referenced at runtime, and to do so it seems that my only option is to use "includeFiles".
I have tried many variations, such as:
{
"functions": {
"./app/**/*.route.tsx": {
"includeFiles": "./content/**/"
}
}
}
This (at least in my understanding) would load all the content in `./content' from every route.
The build always fails with the following error:
Error: The pattern "./app/**/*.route.tsx" defined in `functions` doesn't match any Serverless Functions inside the `api` directory.
Not sure if I'm doing something wrong - but unfortunately the docs are rather unhelpful if so. Thank you in advance!
NB: I use the Remix preset in the Vercel settings. I also use the Vercel preset for Vite.