Skip to content

feat: Serve merged manifest.json via proxy in CF ADP preview mode#4529

Open
nikmace wants to merge 5 commits intomainfrom
feat/4528/serve-manifest-cf
Open

feat: Serve merged manifest.json via proxy in CF ADP preview mode#4529
nikmace wants to merge 5 commits intomainfrom
feat/4528/serve-manifest-cf

Conversation

@nikmace
Copy link
Copy Markdown
Contributor

@nikmace nikmace commented Apr 7, 2026

Feat for #4528.

  • @sap-ux/preview-middleware (src/base/flp.ts)
    • setupCfBuildMode() now registers adp.proxy before serveStatic, so the proxy intercepts
      /manifest.json and Component-preload.js while static files are still served from the build
      output.
  • @sap-ux/adp-tooling (src/preview/adp-preview.ts)
    • initCfBuildMode() initializes mergedDescriptor from the build path manifest so the
      descriptor getter works in CF mode.
    • sync() in CF mode triggers runBuild() with ADP_BUILDER_MODE=preview and re-reads the
      manifest from the build output.
    • proxy() in CF mode calls next() for non-manifest requests instead of attempting file-based
      redirects (which caused redirect loops when mounted at /).

@nikmace nikmace self-assigned this Apr 7, 2026
@nikmace nikmace requested review from a team as code owners April 7, 2026 13:50
@nikmace nikmace added preview-middleware @sap-ux/preview-middleware adp-tooling labels Apr 7, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 7, 2026

🦋 Changeset detected

Latest commit: b0e153f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@sap-ux/preview-middleware Patch
@sap-ux/adp-tooling Patch
@sap-ux/create Patch
@sap-ux/abap-deploy-config-sub-generator Patch
@sap-ux/adp-flp-config-sub-generator Patch
@sap-ux/backend-proxy-middleware-cf Patch
@sap-ux/flp-config-inquirer Patch
@sap-ux/generator-adp Patch
@sap-ux/deploy-config-sub-generator Patch
@sap-ux/flp-config-sub-generator Patch
@sap-ux-private/preview-middleware-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@sonarqubecloud
Copy link
Copy Markdown

@nikmace
Copy link
Copy Markdown
Contributor Author

nikmace commented Apr 14, 2026

Screenshot 2026-04-14 at 10 30 24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adp-tooling preview-middleware @sap-ux/preview-middleware

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant