### Install VTEX Store Maintenance App Source: https://github.com/vtex-apps/store-maintenance/blob/master/docs/README.md This command installs the VTEX Store Maintenance application using the VTEX CLI. Once installed, the app redirects all user traffic to a `/maintenance` route, effectively putting the store into maintenance mode. ```bash vtex install vtex.store-maintenance ``` -------------------------------- ### JavaScript Redirection to Maintenance Page Source: https://github.com/vtex-apps/store-maintenance/blob/master/pixel/head.html This client-side JavaScript code checks the current URL path. If the path is not '/maintenance', it redirects the browser to '/maintenance'. This is typically used to enforce a maintenance mode for a website by ensuring all non-maintenance page requests are routed to the maintenance page. ```JavaScript (function() { if (location.pathname !== '/maintenance') { location.href = '/maintenance' } })() ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.