Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 597 Bytes

Vercel_JSON_Config_For_MERN.md

File metadata and controls

41 lines (35 loc) · 597 Bytes

vercel.json

Vercel json config for express backend

  {
    "version": 2,
    "builds": [
        {
            "src": "server.js",
            "use": "@vercel/node",
            "config": {
                "includeFiles": [
                    "dist/**"
                ]
            }
        }
    ],
    "routes": [
        {
            "src": "/(.*)",
            "dest": "server.js"
        }
    ]
}

Vercel json config to support React Router in frontend

  {
    "rewrites": [
      {
        "source": "/(.*)",
        "destination": "/"
      }
    ]
  }