DEV Community

Discussion on: How to deploy a Node/Express App to Vercel

Collapse
 
saadabbasi profile image
Saad Abbasi

not working , getting this error Due tobuildsexisting in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: https://vercel.link/unused-build-settings

Collapse
 
praneshchow profile image
Pranesh Chowdhury • Edited
{
  "version": 2,
  "builds": [
    {
      "src": "./index.js",
      "use": "@vercel/node"
    }
  ],
  "routes": [
    {
      "src": "/(.*)",
      "dest": "./index.js",
      "methods": ["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"],
      "headers": {
        "Access-Control-Allow-Origin": "*"
      }
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode

Try this code in vercel.json.

Collapse
 
priyang_bawa profile image
⚡Priyang⚡

You have to remove build script from your package.json file

Collapse
 
chromeowo profile image
Chrome#4181

yeah, Any solution?

Collapse
 
shahjalalbu profile image
Md Shahjalal

Brother have you solved this issue?