Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

328
Vistas
Vercel configuration breaks Nextjs v12 hot reloading

I'm using Vercel platform to develop a NodeJS app with two separate folders - frontend (NextJS v12 app) and backend (custom NodeJS with Express). I've set up a minimal example, but after upgrading to NextJS v12, hot reloading stopped working.

I've seen that it's because of the new usage of websockets for HMR at NextJS v12. But didn't find any answer.

This is my vercel.json file:

  "version": 2,
  "builds": [
    { "src": "/backend/index.js", "use": "@now/node" },
    {
      "src": "/frontend/package.json",
      "use": "@now/next"
    }
  ],
  "rewrites": [
    { "source": "/backend/(.*)", "destination": "/backend/index.js" },
    { "source": "/(.*)", "destination": "/frontend/$1" }
  ]
}

and this is the error: WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr' failed

Do you have any ideas what to do with it? This is a related issue on NextJS GitHub: https://github.com/vercel/next.js/issues/30491, but no one is mentioning this problem related to the Vercel configuration file. Thanks.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda