Need help with build configurations, (CLI and Github)

Why is it that output files from deployment from CLI and github differ.

These are the output files from vercel --prod

while these are from github auto deploy

This is my vercel.json

{
  "version": 2,
  "builds": [
    {
      "src": "dist/main.js",
      "use": "@vercel/node"
    }
  ],
  "routes": [
    {
      "src": "/(.*)",
      "dest": "dist/main.js"
    }
  ],
  "buildCommand": "pnpm run build",
  "outputDirectory": "/dist",
  "installCommand": "pnpm install",
  "github": {
    "enabled": true
  }
}

Deployment and build setting on project

I want the github auto deploy to output files just like deployment from the CLI.

Hi @dioooooooooooooooo, welcome to the Vercel Community!

From the screenshot it seems like the Project build settings are different for the production environment vs the others. Can you update the project build settings and redeploy on production?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.