Challenges

Live Reloading for a Production Next.js app

Configurations

In this version, we fetch the current page for each second. In reality, we don't need to fetch that often. Based on your app's usage, you could come up with the desired value. You can also play around with different SWR options.

When you are developing your app, this will always show the notification. In that case, you can disable the notification like this.

Q: Here we are polling a web page for a given interval. Isn't it problematic?
authenticating...