Each cloud environment can have a set of configuartion variables. These are used to store information like shop API keys.
Depending on your integrations (Magento, BigCommerce, Stripe etc) you'll need to add different varaibles to your cloud environment.
We highly recommend you read our config docs before doing this step.
Hopefully you're still logged in from the 'Install Dcloud' step. If not, follow the steps there.
This depends on your integrations.
Each one of our integrations has it's own variables and documentaion that can be found in the 'Integrations' section. For example, our Magento 2 docs.
client vs server variables
Your environment variables are universal, meaning they are accessible by both your client and server apps and you don't need to set them in a different way.
Once you've worked out which variables need setting you can set them using dcloud.
You can then set environment variables using the following command:
This example would set the
MAGENTO_HOST variable on the
test environment to
To apply your variable changes you can run the command:
Running a deployment will restart your app and will also apply new changes to env variables.
Unless you're running Falcon Server locally (Enterprise plans only), now is a great time to test your changes. By connecting your local client app to your remote server app (via the GraphQL URL explained here) you should be able to see any config changes you've made.
We recommend changing your shop integration variables so you can see your own products and categories locally.