Skip to content

Prerender Issue — IOEXT-1811 (maxVersion error) #711

Closed
bdenham wants to merge 12 commits intodevelopfrom
nasm-config-assets
Closed

Prerender Issue — IOEXT-1811 (maxVersion error) #711
bdenham wants to merge 12 commits intodevelopfrom
nasm-config-assets

Conversation

@bdenham
Copy link
Copy Markdown
Collaborator

@bdenham bdenham commented Jan 30, 2026

Purpose of this pull request

This pull request (PR) updates the aem-prerender installation to document the fix to the error that NASM recently encountered:

The error occurs when running aio app build in a CI/CD pipeline. The app.config.yaml file has a productDependencies array, and at least one entry is missing the required maxVersion property.

The error message indicates:

  • Location: /productDependencies/0 (first entry in the array)
  • Missing property: maxVersion
  • Schema requirement: maxVersion is now required for each productDependencies entry

Associated JIRA ticket

https://jira.corp.adobe.com/browse/IOEXT-1811

Staging preview

Affected pages

https://experienceleague.adobe.com/developer/commerce/storefront/setup/configuration/aem-prerender/

@bdenham bdenham self-assigned this Jan 30, 2026
@bdenham bdenham added the major-update Significant original updates to existing content label Jan 30, 2026
@bdenham bdenham changed the title Document the aem-prerender error for missing maxVersion property Prerender error — no maxVersion property — IOEXT-1811 Feb 3, 2026
@bdenham bdenham changed the title Prerender error — no maxVersion property — IOEXT-1811 Prerender maxVersion property — IOEXT-1811 Feb 3, 2026
@bdenham bdenham changed the title Prerender maxVersion property — IOEXT-1811 Prerender — IOEXT-1811 (maxVersion error) Feb 3, 2026
@bdenham bdenham changed the title Prerender — IOEXT-1811 (maxVersion error) Prerender Issue — IOEXT-1811 (maxVersion error) Feb 3, 2026
bdenham and others added 3 commits February 3, 2026 15:59
Reverts changes lost in merge commit d5b5790. Restores:
- ## How it works as proper heading
- Tasks/Task components for installation steps
- Options/Option components for troubleshooting
- Full original content (757 lines)

Co-authored-by: Cursor <cursoragent@cursor.com>
@bdenham bdenham requested a review from meker12 February 5, 2026 01:36
@meker12 meker12 added the feedback Update based on internal or external stakeholder feedback label Feb 5, 2026
add empty line after title
@bdenham bdenham requested a review from sirugh February 5, 2026 16:28
Copy link
Copy Markdown
Contributor

@meker12 meker12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use AI to clean up the PR before pushing. If you download (update) the comdox toolkit, Dima added an /exl-validation and a /refactor command. I'm not sure how /exl-validation will work on the storefront content, but give it a try.

The refactor command was originally created for code, but I found that it works for reviewing the content and suggesting updates that improve content quality. Give it a try.

Comment thread src/content/docs/setup/configuration/aem-prerender.mdx Outdated
Comment thread src/content/docs/setup/configuration/aem-prerender.mdx Outdated
Comment thread src/content/docs/setup/configuration/aem-prerender.mdx Outdated
Comment thread src/content/docs/setup/configuration/aem-prerender.mdx Outdated
Comment thread src/content/docs/setup/configuration/aem-prerender.mdx Outdated
Comment thread src/content/docs/setup/configuration/aem-prerender.mdx
Comment thread src/content/docs/setup/configuration/aem-prerender.mdx Outdated
Comment thread src/content/docs/setup/configuration/aem-prerender.mdx Outdated
Comment thread src/content/docs/setup/configuration/aem-prerender.mdx Outdated
Comment thread src/content/docs/setup/configuration/aem-prerender.mdx Outdated
Co-authored-by: Margaret Eker <meker@adobe.com>
</TableWrapper>

<Aside type="note" title="Commerce configuration">
The prerender app reads Commerce configuration (endpoints, headers, and store context) from your storefront's `config.json` file, not from environment variables. Verify that your storefront has a properly configured `config.json` file with the required Commerce endpoints and headers as described in the <Link href="/setup/configuration/commerce-configuration/" text="Storefront configuration" /> documentation. For Adobe Commerce Optimizer, configure the appropriate headers (`AC-View-ID`, `AC-Source-Locale`, `AC-Price-Book-ID`) in your storefront's `config.json` file.
Copy link
Copy Markdown
Contributor

@sirugh sirugh Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The prerender app reads Commerce configuration (endpoints, headers, and store context) from your storefront's `config.json` file, not from environment variables. Verify that your storefront has a properly configured `config.json` file with the required Commerce endpoints and headers as described in the <Link href="/setup/configuration/commerce-configuration/" text="Storefront configuration" /> documentation. For Adobe Commerce Optimizer, configure the appropriate headers (`AC-View-ID`, `AC-Source-Locale`, `AC-Price-Book-ID`) in your storefront's `config.json` file.
The prerender app reads Commerce configuration (endpoints, headers, and store context) from your site's configuration, not from environment variables. Verify that your storefront has a properly configured site configuration with the required Commerce endpoints and headers as described in the <Link href="/setup/configuration/commerce-configuration/" text="Storefront configuration" /> documentation. For Adobe Commerce Optimizer, configure the appropriate headers (`AC-View-ID`, `AC-Source-Locale`) in your site configuration.

AC-Price-Book-ID should be automatic based on user auth state after next "release", assuming configuration set up correctly (adobe-commerce-optimizer: true).

Also let's stop using the config.json term. It should be "site configuration".

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree

Comment thread astro.config.mjs
generateSidebar(),
{
exclude: ['/sdk/**', '/videos/**', '/dropins-b2b/**', '/merchants/storefront-builder/**'],
exclude: ['/sdk/**', '/videos/**', '/dropins-b2b/**', '/merchants/storefront-builder/**', '/get-started/howitallworks/**'],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's "howitallworks"?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sirugh — It's an artifact to fix the build when merging conflicts arise with the preview branch that holds lots of other PRs.

Sorry for the churn and extra changes that got into this PR. Moving forward:

  1. I'll direct tech reviewers to the relevant files to review.
  2. Keep the PRs slim (no refactoring) so the review is as simple as possible.
  3. Tech reviewers should approve first, so they can be about their way.

Thanks for the feedback.

@sirugh
Copy link
Copy Markdown
Contributor

sirugh commented Feb 5, 2026

I appreciate that we want to continually improve our docs, but I think sandbagging a big refactor when the issue is smaller makes it difficult to review or get changes out quickly.

Like, the PR description says:

The error occurs when running aio app build in a CI/CD pipeline. The app.config.yaml file has a productDependencies array, and at least one entry is missing the required maxVersion property.

So I would assume that the change might be a few lines, simple to review. But now that change is buried in a mountain of refactor. Are we meant to review the refactor or just the specific change that is the reason the PR was created?


**Commerce credentials** (Adobe Commerce Optimizer): Configure your Commerce backend connection according to your deployment type. For details on configuring Optimizer headers and endpoints, see the <Link href="/setup/configuration/commerce-configuration/" text="Storefront configuration" /> documentation for details.

**Note**: The prerender app reads Commerce configuration (endpoints and headers) from your storefront's `config.json` file, not from environment variables. Before deployment, verify that `config.json` is correctly configured.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same note re config.json vs "site configuration".

**Note**: The prerender app reads Commerce configuration (endpoints and headers) from your storefront's `config.json` file, not from environment variables. Before deployment, verify that `config.json` is correctly configured.

<Aside type="caution" title="Required: maxVersion in productDependencies">
If your `app.config.yaml` includes a `productDependencies` array, **each entry must include `maxVersion`**. Otherwise, the `aio app build` command fails with a validation error.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the prerender repo come with a "default" or "reference" app.config.yaml? If so, should we just fix it there instead of making a docs change?

Or, is this a scenario that happens in specific situations, like maybe productDependencies is added if you have some specific version of aio?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a default template; all that's needed after testing is to uncomment the lines and deploy. I'm not familiar with maxVersion. We have never used it.

</TableWrapper>

<Aside type="note" title="Commerce configuration">
The prerender app reads Commerce configuration (endpoints, headers, and store context) from your storefront's `config.json` file, not from environment variables. Verify that your storefront has a properly configured `config.json` file with the required Commerce endpoints and headers as described in the <Link href="/setup/configuration/commerce-configuration/" text="Storefront configuration" /> documentation. For Adobe Commerce Optimizer, configure the appropriate headers (`AC-View-ID`, `AC-Source-Locale`, `AC-Price-Book-ID`) in your storefront's `config.json` file.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree

**Note**: The prerender app reads Commerce configuration (endpoints and headers) from your storefront's `config.json` file, not from environment variables. Before deployment, verify that `config.json` is correctly configured.

<Aside type="caution" title="Required: maxVersion in productDependencies">
If your `app.config.yaml` includes a `productDependencies` array, **each entry must include `maxVersion`**. Otherwise, the `aio app build` command fails with a validation error.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a default template; all that's needed after testing is to uncomment the lines and deploy. I'm not familiar with maxVersion. We have never used it.

Comment on lines +319 to +333
**Correct format:**
```yaml
productDependencies:
- code: <PRODUCT_CODE>
minVersion: <MIN_VERSION>
maxVersion: <MAX_VERSION> # Required
```

**Incorrect format (will cause build failure):**
```yaml
productDependencies:
- code: <PRODUCT_CODE>
minVersion: <MIN_VERSION>
# Missing maxVersion - build will fail
```
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's not needed for this project

### Enable automated synchronization

After deployment, perform the following steps:
- Use the <Link href="https://prerender.aem-storefront.com" text="Management UI" /> to start the change detector
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The context will only appear here if we complete all the installation steps in the local environment.

- Update your `app.config.yaml` file and redeploy with `npm run deploy`
<Option>

### Build error: Missing maxVersion in productDependencies
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look at my comment above

Comment on lines +677 to +681
productDependencies:
- code: <PRODUCT_CODE>
minVersion: <MIN_VERSION>
maxVersion: <MAX_VERSION> # Required field
```
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably we should remove it

@bdenham
Copy link
Copy Markdown
Collaborator Author

bdenham commented Feb 7, 2026

Closed because they closed the ticket and @baranovskyalexandr told me it was not associated with prerender as I initially thought from early slack messages regarding the problem.

@bdenham bdenham closed this Feb 7, 2026
@bdenham bdenham deleted the nasm-config-assets branch May 2, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feedback Update based on internal or external stakeholder feedback major-update Significant original updates to existing content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants