Skip to content

Commit

Permalink
feat: support connect
Browse files Browse the repository at this point in the history
  • Loading branch information
luispinto-commercetools committed Jul 3, 2023
1 parent bc2c28f commit 877d1b9
Show file tree
Hide file tree
Showing 7 changed files with 141 additions and 348 deletions.
21 changes: 21 additions & 0 deletions connect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
deployAs:
- name: extension
applicationType: service
endpoint: /
scripts:
postDeploy: npm install && npm run setup-resources
configuration:
securedConfiguration:
- key: ADYEN_INTEGRATION_CONFIG
description: Escaped JSON object, for more details visit (https://github.com/commercetools/commercetools-adyen-integration/blob/master/extension/docs/HowToRun.md#environment-variable)
- name: notification
applicationType: service
endpoint: /
scripts:
postDeploy: npm install && npm run setup-resources
configuration:
securedConfiguration:
- key: ADYEN_INTEGRATION_CONFIG
description: Escaped JSON object, for more details visit (https://github.com/commercetools/commercetools-adyen-integration/blob/master/notification/docs/HowToRun.md#environment-variable)


98 changes: 49 additions & 49 deletions extension/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion extension/src/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ function getModuleConfig() {
),
port: config.port,
logLevel: config.logLevel,
apiExtensionBaseUrl: config.apiExtensionBaseUrl, // used for development purpose and for setup-resources command
// If used for development purpose and for setup-resources command
apiExtensionBaseUrl:
process.env.CONNECT_SERVICE_URL ?? config.apiExtensionBaseUrl,
basicAuth: config.basicAuth || false,
keepAliveTimeout: !Number.isNaN(config.keepAliveTimeout)
? parseFloat(config.keepAliveTimeout, 10)
Expand Down
Loading

0 comments on commit 877d1b9

Please sign in to comment.