Error: The allow-in-static-site configuration tag is invalid when deploying my community to an organization

166 Views Asked by At

I receive the following error message when try to deploy my ExperienceBundle:

Error: For the MyCommunity/routes/serviceNotAvailable.json route, the allow-in-static-site configuration tag is invalid. Update your file, and try again.

serviceNotAvailable.json

{
  "activeViewId" : "ccb97685-3412-5431-8cee-cd7168363618",
  "appPageId" : "1b9a6145-fd12-42af-dc43-b7e91f71e3c2",
  "configurationTags" : [ "allow-in-static-site" ],
  "id" : "681ce2a0-63d9-417e-ba44-2z0c05375d35",
  "label" : "Service Not Available",
  "routeType" : "service-not-available",
  "type" : "route",
  "urlPrefix" : "service-not-available",
  "devName" : "Service_Not_Available__c"
}

As per Salesforce documentation I can use this tag.

Does anyone have any ideas how to solve it?

When I remove allow-in-static-site in serviceNotAvailable.json I receive the next error:

The ServiceNotAvailable theme layout type cannot be used in MyCommunity/views/tooManyRequests.json. Update the file and try again.

When I remove "configurationTags" property I receive error that this property is required.

0

There are 0 best solutions below