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

248
Vistas
Next.js Update Json on Button Press

I'm used to XML requests in JS to communicate with the server after the page is loaded.

I can't figure out how to simulate XML post requests with the 'database' (json for testing) in Next.js.

I can load data, but I also need to update the json file after user inputs. fs.writeFileSync() doesn't seem to work at all outside of the getServerSideProps() function. getServerSideProps() also can't pass objects that can be used once the page is loaded.

I've been stuck on this for hours...

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