Search for a command to run...
В этом документе вы узнаете, как установить и настроить плагин ApiShip для Medusa.
yarn add @gorgo/medusa-integration @gorgo/medusa-fulfillment-apiship@betaДобавьте конфигурацию провайдера в файл в приложении Medusa Admin:
medusa-config.ts1// ...2const APISHIP_INTEGRATION_ID = "apiship-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-fulfillment-apiship/providers/integration-apiship",15 id: APISHIP_INTEGRATION_ID,16 options: {},17 },18 ],19 },20 },21 {22 resolve: "@gorgo/medusa-fulfillment-apiship",23 options: {},24 },25 ],26 modules: [27 // ...28 {29 resolve: "@medusajs/medusa/fulfillment",30 options: {31 providers: [32 {33 resolve: "@gorgo/medusa-fulfillment-apiship/providers/fulfillment-apiship",34 id: "apiship",35 options: {36 id: APISHIP_INTEGRATION_ID37 },38 },39 ],40 },41 },42 ],43})
Добавьте переменную окружения с секретным ключом шифрования:
.envINTEGRATION_ENCRYPTION_KEY=supersecret