Testing the maintenance middleware

Inside the browser, we'll refresh the page, and we will get the following output:

We get the maintenance page. We can go to the home page and we get the exact same thing:

Now there's one more really important piece to middleware we haven't discussed yet. Remember inside the public folder, we have a help.html file as shown here:

If we visit this in the browser by going to localhost:3000/help.html, we'll still ...

Get Learning Node.js Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.