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": "/static" }, It can be set but only one can be configured. I need multiple.
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": "/static" }, It can be set but only one can be configured. I need multiple.
Hi, !
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 /next.
References:
Midway official website [https://midwayjs.org/en/docs/deployment](https://midwayjs.org/en/docs/deployment)