Configuration
To connect your Archibald application with SAP Customer Data Cloud (CDC), you need to provide the connection details in your environment configuration files.
Environment Configuration
The CDC configuration is typically located in the environment directory of your application template (e.g., templates/shop/environment/common.ts).
Here is an example of the CDC configuration:
// templates/shop/environment/common.ts
export default defineCommonConfig<ProjectConfig>({
// ...
cdc: {
protocol: 'https',
apiKey: '{{CDC_API_KEY}}',
dataCenter: '{{CDC_DATA_CENTER}}',
application: {
userKey: '{{CDC_USER_KEY}}',
secret: '{{CDC_SECRET}}'
}
},
// ...
});
Configuration Options
protocol: The protocol to use (typicallyhttps).apiKey: Your SAP CDC API key.dataCenter: The data center of your SAP CDC instance (e.g.,us1.gigya.com).application.userKey: Your SAP CDC user key (Application Key).application.secret: Your SAP CDC secret key (Application Secret).
These values are typically provided through environment variables at build time.