I have an application. Now during the deployment in dev/test/prod, I would like to enable/disable maintenance mode, so that user can see the proper message. Also I would like to customize the maintenance page. Can anyone tell me, how can I do this ?
Hi Nour,
What I did in a previous Application was,
Added a data action in the main layout to retrieve a Site Property named "maintenanceMode"
Add a client action to the layout that refreshes a data action and checks if Maintenance Mode is enabled.
In the OnInitialize event, use a JavaScript block to call the created actions. This approach avoids a warning about running server actions.
Yes, I acknowledge that this might not be the best practice. However, it's worth noting that OutSystems follows a similar approach in the UserInfo block.