Error While Validating Secure Key After Adding app_settings.json to Existing Custom App

Hi everyone,

I have an existing custom app that was originally developed without an app_settings.json file. I am now trying to update the app version by adding app_settings.json so that I can configure and validate the secure key.

However, I am getting the following error while validating the secure key:

An error occurred due to the updates. Please check the value and try again.

When I checked the Network tab, the validation request shows:

action: "validate"
message: "Latest 3 versions do not have backend code"

Since this is an existing app, the previous versions were developed without backend code. Could someone please clarify:

  1. Why is the secure key validation checking the latest 3 versions for backend code?
  2. Is there a specific way to add app_settings.json to an existing custom app that was initially created without backend code?
  3. Do I need to create new versions with backend code before I can validate the secure key?
  4. Is there any recommended migration process for adding secure-key support to an existing app?

Any guidance on how to resolve this issue would be greatly appreciated.

Thank you!