@adobe/aem-cli 16.20.8 → 16.20.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [16.20.9](https://github.com/adobe/helix-cli/compare/v16.20.8...v16.20.9) (2026-07-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * inject hlx:proxyUrl meta for pages served from local content/ ([#2753](https://github.com/adobe/helix-cli/issues/2753)) ([271bfcf](https://github.com/adobe/helix-cli/commit/271bfcfa01316944ce5b4e26e767d59a189b78bc))
7
+
1
8
  ## [16.20.8](https://github.com/adobe/helix-cli/compare/v16.20.7...v16.20.8) (2026-07-06)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/aem-cli",
3
- "version": "16.20.8",
3
+ "version": "16.20.9",
4
4
  "description": "AEM CLI",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -503,6 +503,13 @@ export class HelixServer extends BaseServer {
503
503
  htmlContent = htmlContent.replace(/<\/head>/i, `${metaTagsHtml}</head>`);
504
504
  }
505
505
  }
506
+ const proxyPageUrl = new URL(ctx.url, proxyUrl);
507
+ for (const [key, value] of proxyUrl.searchParams.entries()) {
508
+ proxyPageUrl.searchParams.append(key, value);
509
+ }
510
+ htmlContent = utils.injectMeta(htmlContent, {
511
+ 'hlx:proxyUrl': proxyPageUrl.href,
512
+ });
506
513
  if (liveReload) {
507
514
  htmlContent = utils.injectLiveReloadScript(htmlContent, this);
508
515
  liveReload.registerFile(ctx.requestId, contentFilePath);