Skip to main content

Reference: Configuration Options

.env variables

VariableDescriptionRequiredDefault
CRM_URL_PATHBase URL to your Dynamics CRM instanceYes
MITMPROXY_PATHPath to your local mitmproxy executableYes
PCF_EXPECTED_PATHURL pattern to match/intercept from Dynamics.
Note: This will be treated as a regular expression string, any resource after the trailing slash (/) will be served through the proxy (e.g. bundle.js, css/style.css...)
No/webresources/{PCF_NAME}/
CHROME_EXE_PATHPath to your Chrome executableYes
PROXY_PORTPort for the proxy server (mitmproxy)No8080
HTTP_SERVER_PORTPort for the local HTTP serverNo8082
  • PCF_COMPONENT_NAME is set automatically from the CLI argument (component name).

CLI usage

  • Start the proxy:
    npm run dev:proxy -- YourComponentName
    • YourComponentName is required and used to find the correct bundle and folder.

Folder structure

YourPcfComponent/
├── dev/
│ ├── proxy.js
│ └── redirect-bundle.py
├── .env.example
├── package.json

Scripts

  • npm run dev:proxy -- YourComponentName — Start local dev proxy