In the vercel.json file, how to transfer multiple static files to the output

In the vercel.json file, how to transfer multiple static files to the output. How to configure it in builds, I know to use
{
“src”: “package.json”,
“use”: “@vercel/static”
},
It can be set but only one can be configured. I need multiple.

Hi, @xuweijie123!

As far as I understand, for most projects, especially those using frameworks, you don’t need to manually configure static file handling in vercel.json. These frameworks have built-in mechanisms to handle static files.

For example, in Next.js, files in the public folder are automatically served as static assets.

I’d love to understand a bit more what you’re trying to do?

hi pawlean!

I want to deploy the Midway project to vercel, but after the project is built, the necessary package.json, bootstrap.js, node_modules and other files are not put into the compiled folder, so I need to manually put them into the output when the project is deployed. I looked at the Midway official website and there is no constructor similar to @vercel/next.

References:

Midway official website  https://midwayjs.org/en/docs/deployment