Temporarily disable XDN site

How can I temporarily disable a site running on the Moovweb XDN?

There isn’t a way to completely disable the site (other than deleting it) from the XDN Developer Console. But you could do one of the following:

  • Remove the custom domains from an environment to “undeploy” it from those domains.
  • Alter your router to serve a maintenance page (using send() or serveStatic()) for all URLs by putting a router.match('/:path*', res => res.serveStatic('/maintenance.html')) at the top of the router. This route could also be conditionally added based on an environment variable if you need to enable/disable the project regularly.
1 Like