How to handle "planned maintenance" for a Softr-hosted app. Any ideas?

Hi Derek,

Just create a maintenance page with whatever you want inside. No header, no footer. Give this url path to the newly created page: /maintenance

Insert this simple script in the header custom code at app level:

<script>
    window.onload = function() {
        if (window.location.pathname !== '/maintenance') {
            window.location.replace('/maintenance');
        }
    };
</script>

That should do the trick

2 Likes