Site does not load CSS when build & deployed via `netlify build && netlify deploy --prod`

Hi,
We try to have our own CI/CD. We want to deploy the website using netlify CLI. The results of auto deploy after connecting to Github and CLI differ. Attached logs and deploys urls

A. Auto deploy via Github connect

  1. Log: everything fine here · GitHub
  2. UI: https://i.imgur.com/iFm2bvv.png

B. Deploy via CLI

  1. Log: netlify-build-deploy.log · GitHub
  2. https://i.imgur.com/10Ltqcb.png
  3. Netlfiy.toml
# netlify.toml

[build]
  command = "npm run build"
  publish = ".next"

[build.environment]
  NODE_VERSION = "18" 

How can I fix this issue?

Howdy @deepak and welcome! :cowboy_hat_face:

Could you share the link in Netlify for these deploys to help us take a closer look?

@audrey
These are the Netlify links.
For case A: https://6519371a83a6402cbe67571e--authlayer-netlify-test.netlify.app/
For case B: https://651939896399a3347130f20b--authlayer-netlify-test.netlify.app/

As mentioned in the helpdesk, the correct command is netlify deploy --build --prod.