Skip to content

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

@Gbuomprisco

Description

@Gbuomprisco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions