Next.js Discord

Discord Forum

Create data that stored in localstorage using a cron job

Unanswered
Cuvier’s Dwarf Caiman posted this in #help-forum
Open in Discord
Cuvier’s Dwarf CaimanOP
How do I create data that is stored inside of localstrage using a cron job?
I am working on a frontend application that should still be usable even if the backend server where the data is fetched from shuts down.
So what I came up with is storing the data bodies in localstorage to send to the api at a later date. I want to do this using a cron job.

But, is this a good practice?
Does anyone have advice on how to do it correctly?

0 Replies