Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The property" includeFiles" in vercel.json points to the wrong path #120

Open
Gbuomprisco opened this issue Jun 22, 2024 · 0 comments
Open

Comments

@Gbuomprisco
Copy link

Gbuomprisco commented Jun 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant