-
Notifications
You must be signed in to change notification settings - Fork 18
CEXT-5328: Add business config lib #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CEXT-5328: Add business config lib #83
Conversation
|
Heads-up: the vars renaming is going to require changes to the starter kit public docs: https://developer.adobe.com/commerce/extensibility/starter-kit/integration/create-integration/, for example the section in the screenshot below |
|
Following the README to install a vanilla starter-kit project, I run into an issue where the generated runtime actions do not get deployed. ❯ aio app deploy
✔ Built 35 action(s) for 'application'
ℹ No frontend or a build already exists, skipping frontend build for 'application'
✔ Deployed 38 action(s) for 'application'
no frontend, skipping frontend deploy 'application'
Your deployed actions:
web actions:
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/web/starter-kit/info
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/web/webhook/check-stock
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/web/product-commerce/full-sync
non-web actions:
-> starter-kit/__secured_info
-> webhook/__secured_check-stock
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/product-commerce/consumer
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/product-commerce/created
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/product-commerce/updated
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/product-commerce/deleted
-> product-commerce/__secured_full-sync
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/product-backoffice/consumer
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/product-backoffice/created
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/product-backoffice/updated
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/product-backoffice/deleted
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/customer-commerce/consumer
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/customer-commerce/created
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/customer-commerce/updated
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/customer-commerce/deleted
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/customer-commerce/group-updated
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/customer-commerce/group-deleted
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/customer-backoffice/consumer
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/customer-backoffice/created
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/customer-backoffice/updated
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/customer-backoffice/deleted
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/customer-backoffice/group-created
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/customer-backoffice/group-updated
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/customer-backoffice/group-deleted
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/order-commerce/consumer
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/order-commerce/created
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/order-commerce/updated
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/order-backoffice/consumer
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/order-backoffice/updated
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/order-backoffice/shipment-created
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/order-backoffice/shipment-updated
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/stock-commerce/consumer
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/stock-commerce/updated
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/stock-backoffice/consumer
-> https://3117813-rojopocs-configlibtest2.adobeioruntime.net/api/v1/stock-backoffice/updated
2025-11-11T11:29:17.343Z [@adobe/aio-commerce-lib-config:schema-validation] info: 🔄 Analyzing configuration schema...
2025-11-11T11:29:17.346Z [@adobe/aio-commerce-lib-config:schema-validation] info: ✅ Configuration schema validation passed.
2025-11-11T11:29:17.347Z [@adobe/aio-commerce-lib-config:actions:generate] info: 📄 Generated configuration-schema.json
2025-11-11T11:29:17.347Z [@adobe/aio-commerce-lib-config:actions:generate] info: 📝 Updating ext.config.yaml...
2025-11-11T11:29:17.353Z [@adobe/aio-commerce-lib-config:actions:generate] info: 🔧 Generating runtime actions...
2025-11-11T11:29:17.355Z [@adobe/aio-commerce-lib-config:actions:generate] info: ✅ Generated 6 action(s) in .generated/actions/app-management
ℹ no backend, skipping action build for 'commerce/configuration/1'
ℹ No frontend or a build already exists, skipping frontend build for 'commerce/configuration/1'
no backend, skipping action deploy 'commerce/configuration/1'
no frontend, skipping frontend deploy 'commerce/configuration/1'
› Error: Cannot convert undefined or null to object |
|
Also, notice this error at the end of › Error: Cannot convert undefined or null to object |
|
Is there a recommendation for what to do with the files that were modified during the process? I noticed that they appear as code modified when running ❯ git status
Alias tip: gst
On branch CEXT-5328-add-business-config-lib
Your branch is up to date with 'origin/CEXT-5328-add-business-config-lib'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: commerce-configuration-1/ext.config.yaml
Untracked files:
(use "git add <file>..." to include in what will be committed)
commerce-configuration-1/.generated/
no changes added to commit (use "git add" and/or "git commit -a") |
I was testing with another app and had no issues, but I see this with SK 🤔 We might need to move the pre-app-build hook up from extensions to application: |
Can reproduce, looking for a fix. This only happens if you run the Moving the |
5ee2e81 to
a540aa4
Compare
|
The For PaaS, it is working fine. though |
|
@rojoangel Everything should be working properly now |

Description
Add Business Config Library into the Integration Starter Kit.
This PR updates the environment variable naming convention throughout the codebase to use the new
AIO_COMMERCE_* prefixes. While most files contain variable name updates, the primary focus of this PR is the integration ofaio-commerce-lib-config.📋 Environment Variable Changes
IMS OAuth Variables:
OAUTH_CLIENT_ID→AIO_COMMERCE_AUTH_IMS_CLIENT_IDOAUTH_CLIENT_SECRET→AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETSOAUTH_TECHNICAL_ACCOUNT_ID→AIO_COMMERCE_AUTH_IMS_TECHNICAL_ACCOUNT_IDOAUTH_TECHNICAL_ACCOUNT_EMAIL→AIO_COMMERCE_AUTH_IMS_TECHNICAL_ACCOUNT_EMAILOAUTH_ORG_ID→AIO_COMMERCE_AUTH_IMS_ORG_IDOAUTH_SCOPES→AIO_COMMERCE_AUTH_IMS_SCOPESCommerce Integration Variables:
COMMERCE_CONSUMER_KEY→AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEYCOMMERCE_CONSUMER_SECRET→AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRETCOMMERCE_ACCESS_TOKEN→AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKENCOMMERCE_ACCESS_TOKEN_SECRET→AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRETCOMMERCE_BASE_URL→AIO_COMMERCE_API_BASE_URL🎯 Key Files to Review (aio-commerce-lib-config integration)
commerce-configuration-1/ext.config.yaml- Extension configuration addedapp.config.yaml- Application configuration changes to add extension pointenv.dist- Environment template with updated variable namesinstall.yaml- Installation configuration updatespackage.json- New dependency additions and updates