Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

200
Visualizações
How to fix the 'no severless pages built' in nextjs deployment using vercel?

I' am trying to deploy my NextJs app. I have been getting the same 2 errors the past few days:

1: // and will just error later on
2: Error: No serverless pages were built. Learn More: https://err.sh/vercel/vercel/now-next-no-serverless-pages-built
I have got no clue on how to fix both of them. I would appreciate it if anyone helped

This is my package.json file:

{
  "name": "my-dev-portfolio",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "dev": "next",
    "bulid": "next build",
    "start": "next start",
    "now-build": "next build"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@fortawesome/fontawesome-svg-core": "^6.1.1",
    "@fortawesome/free-brands-svg-icons": "^6.1.1",
    "@fortawesome/free-solid-svg-icons": "^6.1.1",
    "@fortawesome/react-fontawesome": "^0.2.0",
    "next": "^12.2.0",
    "react-dom": "^18.2.0",
    "typewriter-effect": "^2.19.0"
  }
}

The next.config.json file:

module.exports = {
    target: "serverless"
}

now.json file:

{
    "version": 2,
    "builds": [{"src":"package.json", "use": "@now/next"}]
}
about 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

For now.json: you are using a very old method. Vercel can now detect your framework. Check the announcement in the blog: Zero Config Deployments .

For next.config.js where you are using target: serverless, that is also not needed at all. Just remove it if you are deploying to Vercel. For those curious, check https://nextjs.org/docs/advanced-features/output-file-tracing for more information on a better solution that replaced target.

about 4 years ago · Santiago Trujillo Relatório

0

You dont need now.json file. Delete it and try deployment again

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda