payloadcms / public-demo

The official public demo for Payload
https://demo.payloadcms.com
152 stars 74 forks source link

chore: remove nodemon #16

Open thgh opened 1 year ago

thgh commented 1 year ago

Hi, this is just a suggestion. Based on my benchmarks, this improves startup time in this repo from 2220 ms to 1975 ms. In my personal project it improves startup time from 1900 ms to 1391 ms. (Best of 10 runs)

thgh commented 1 year ago

omg, I have been using nodemon for months based on the demo repo, turns out there is no reason to restart the app for every change. This PR delivers the intended Payload CMS behaviour.

Edit: it's for reloading server files

jacobsfletch commented 1 year ago

Related: https://github.com/payloadcms/public-demo/discussions/20

thgh commented 1 year ago

Related: https://github.com/payloadcms/payload/pull/2563