Avoid loss of const data when glitch restarts after 5 mins inactivity

Actually, I just built a web authentication app using the web dev simplified tutorial but then there is a use of constant to store user data that is the login and password instead of database(because they use MongoDB whereas glitch doesn’t have it :frowning: )… so I used it. but then the value of constant becomes new when the server is restarted… so as glitch puts the app to sleep after 5 mins inactivity… my constant will get lost (Not yet tried but by the theory)… so, is there any way I can change the behaviours of glitch restarting without losing the data stored ??


This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.