When deploying the code remotely, the plugin fails to connect due to the plugin configuration-related files pointing at the wrong URL.
Description
This PR implements a REMOTE_URL environment variable inside the code which allows developers to seamlessly switch between a local environment and a production environment without needing to modify the openapi.yaml and ai-plugin.json files every time code changes are made and redeployed remotely.
This PR will also work very well with almost all future remote deployment integrations as the developer would only need to add a REMOTE_URL environment variable in the deployment service provider's project configuration resulting in a smooth CI/CD pipeline.
Issue
When deploying the code remotely, the plugin fails to connect due to the plugin configuration-related files pointing at the wrong URL.
Description
This PR implements a
REMOTE_URL
environment variable inside the code which allows developers to seamlessly switch between a local environment and a production environment without needing to modify theopenapi.yaml
andai-plugin.json
files every time code changes are made and redeployed remotely.This PR will also work very well with almost all future remote deployment integrations as the developer would only need to add a
REMOTE_URL
environment variable in the deployment service provider's project configuration resulting in a smooth CI/CD pipeline.Usage
When running the code locally:
When running the code remotely:
@logankilpatrick @joedevon