To keep our system healthy, all apps created on Glitch are automatically restarted every 12 hours. If these restarts cause you to lose data that your app has been collecting, you can try adding a persistent log.
This starter project contains code that allows your project to preserve data through file logging. From the project page, you can either:
- Click View Source to review the code and copy what you need into your existing project, or
- Click Remix to save a copy of the ~starter-winston project to your account. From there, you can use it as a template for creating a project with persistent logging.