Serving UI Directories
  • 24 May 2023
  • Dark
    Light
  • PDF

Serving UI Directories

  • Dark
    Light
  • PDF

Article summary

UI Directories Property

For all services with a user interface (UI) that serve static files, a new uiDirectories property is now required at the root level of the pronghorn.json file. The property is a list of top level directory names, in which only the files within those directories are served by IAP.

Within two releases, the default methodology to serve static files will be replaced by uiDirectories. From now until then, if no uiDirectories property exists, all static files are served; however, once the new property takes effect, only the files specified within uiDirectories are statically served. No other files outside uiDirectories are served.

Example

In the following example, all files within the build, img, and icon directories are served by IAP. No other files will be served by IAP.

{
    "id": "@itential/app-test",
    "uiDirectories": ["build", "img", "icon"],
    "encrypted": true,
    "src": "cog.bing",
    "type": "Application",
    "export": "test",
    "title": "test",
    "summary": "Test",
    "pdb": true,
    "roles": ["admin", "engineering", "support", "apiread", "apiwrite"],
    "methods": [],
    "views": []
}

Further Reading

Please review the deprecation product notice for Serving Static Files.


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.