staticFilesDirectory
Starting with Profound.js 6, the usage of this option has changed – see Version Differences below.
Description
This property specifies where Profound UI static files (htdocs) can be found. Static files are used to locate images, CSS files, and client-side JavaScript code.
On IBM i, the default location for Profound UI static files is /www/profoundui/htdocs, where profoundui is the Profound UI instance name.
Ways to Specify the Value
An absolute directory name - For example "/www/profoundui/htdocs";
A directory name relative to the Profound.js installation directory - For example "htdocs". This requires a copy of the htdocs directory inside your Profound.js installation directory, which can be downloaded during installation;
A URL - Pointing to the web server where Profound UI is installed and the static files are hosted, for example "http://myibmi:8080". This allows a development PC installation to point to an IBM i for its static files. In this mode only known Profound UI paths are served, so use additionalStaticPaths to expose anything extra.
Version Differences
In Profound.js versions before 6,
staticFilesDirectorymust point to a Profound UI installation, or Profound.js will not be functional;Starting with version 6, Profound.js no longer requires a separate Profound UI installation.
staticFilesDirectorycan be used optionally to add web-servable files – images, stylesheets, custom widgets, and so on – to the server.
Example
staticFilesDirectory: "/www/profoundui/htdocs"For information on how to modify this setting, see Configuration File.