30
Views
1
Comments
How can I enable/disable maintenance mode and customize the maintenance page ?
Application Type
Reactive
Service Studio Version
11.54.22 (Build 62709)
Platform Version
11.23.0 (Build 40636)

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.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.