Configure environment variables in the DXP

When you deploy a Components at Edge component to the Squiz DXP, component set configuration in the DXP Console controls which environment variable values are available. Values can be set for the set and overridden for individual components, subject to the variables your manifest.json file exposes.

What to do

  1. Deploy your component version so the updated manifest.json file and code are available. Read the Deploy the component to the DXP documentation for more information.

  2. In the DXP Console, open the relevant component set and configure environment variable values to match the names in your manifest.json file.

  3. Add the component set to Squiz Content Management and add the component to a page when you validate in CMS. Read the Add a component set to content management and Add the component to a page documentation in the Create a component tutorial for more information.

  4. Confirm that published or previewed output reflects the configured values.

Reference

Read the Configure environment variable values in a component set documentation for the full DXP and CMS flow.