Search for a command to run...
In this document, you'll learn how to install and configure the 1C:Enterprise integration plugin for Medusa.
yarn add @gorgo/medusa-integration @gorgo/medusa-1c@betaAdd the plugin configuration in your file of the Medusa admin application:
medusa-config.js1# ...2const ONEC_INTEGRATION_ID = "1c-1"34module.exports = defineConfig({5 # ...6 plugins: [7 # ...8 {9 resolve: "@gorgo/medusa-integration",10 options: {11 encryptionKey: process.env.INTEGRATION_ENCRYPTION_KEY,12 providers: [13 {14 resolve: "@gorgo/medusa-1c/providers/integration-1c",15 id: ONEC_INTEGRATION_ID,16 options: {},17 },18 ],19 },20 },21 {22 resolve: "@gorgo/medusa-1c",23 options: {}24 },25 ],26})
Add environment variables with your secret :
.envINTEGRATION_ENCRYPTION_KEY=supersecret