You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not an issue about this repo but I do haven't found too much info about this usage.
I was thinking building the database with Next.js Edge Service, so it should be very convenient to build API and save data by frontend.
But then I realize one thing, since the db.json is inside the project, which means when I try to build my app with the db.json, this database file will always be overwrite by the new one after I send the new docker image to the server. Which means, in this scenario, the lowdb is not a really persistent database. It should always be brand new after I update my app.
I also think maybe we should use it on the client side, not the server side, but since we already have IndexedDB, I really can't say necessity of using lowdb instead of using IndexedDB.
So for now I can draw a conclusion that lowdb with Next.js should not be designed to save the data which needs to be saved secure. One scenario I can think about is to use lowdb to cache data on Edge Service for user and real server.
Any other ideas? I think I just find a powerful weapon, but I just don't know how to use it 🤷♂️
The text was updated successfully, but these errors were encountered:
This is not an issue about this repo but I do haven't found too much info about this usage.
I was thinking building the database with Next.js Edge Service, so it should be very convenient to build API and save data by frontend.
But then I realize one thing, since the db.json is inside the project, which means when I try to build my app with the db.json, this database file will always be overwrite by the new one after I send the new docker image to the server. Which means, in this scenario, the lowdb is not a really persistent database. It should always be brand new after I update my app.
I also think maybe we should use it on the client side, not the server side, but since we already have IndexedDB, I really can't say necessity of using lowdb instead of using IndexedDB.
So for now I can draw a conclusion that lowdb with Next.js should not be designed to save the data which needs to be saved secure. One scenario I can think about is to use lowdb to cache data on Edge Service for user and real server.
Any other ideas? I think I just find a powerful weapon, but I just don't know how to use it 🤷♂️
The text was updated successfully, but these errors were encountered: