This repository demonstrates how to return different manifests depending on url query string.
The index.ts file in the src folder is used by the express server to return different manifest json depending supplied query string.
Following npm commands in the package.json perform the above commands: npm run staging "staging" :"start fin://localhost:8080/?env=staging"
npm run dev "dev" :"start fin://localhost:8080/?env=dev"
Follow the instructions below to get up and running.
- Install dependencies. Note that these examples assume you are in the sub-directory for the example.
$ npm install- Build the project.
$ npm run build- Start the test server in a new window.
$ npm run startfor proceeding steps start another terminal in the same location
- Start the Platform staging application.
$ npm run staging
5. Start the Platform dev application.
```bash
$ npm run dev
When dev is used the app-dev.html will open in a new window and the same for staging with app-staging.html.
This is an example of how to use OpenFin APIs to configure OpenFin Container. Its purpose is to provide an example and suggestions. DO NOT assume that it contains production-ready code. Please use this as a guide and provide feedback. Thanks!