Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

247
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!