NextJS 404 on CSS and JS

Website

Neither my css or js are working on my website.

In localhost they work well. Im running the following commands:

  • netlify build
  • netlify deploy

Im running the builds & deploys like that, im not using a github repo.

CLUE:

If i remove the “_next” from the URL, the asset work, but im not sure if this is expected.
So for example, this css does not work (404):
https://stunning-cuchufli-753b35.netlify.app/_next/static/css/dcced01344267af7.css

but this one does:
https://stunning-cuchufli-753b35.netlify.app/static/css/dcced01344267af7.css

Thanks in advance.

I almost get insane with this.

The solution is to make the deploy running:
netlify deploy --build

Instead of
netlify build && netlify deploy

Hi @fornix thanks for writing back in and sharing your solution with the community! :partying_face: