helix-cli icon indicating copy to clipboard operation
helix-cli copied to clipboard

When switching branches, proxy ignores the AEM_PAGES_URL set in .env

Open shsteimer opened this issue 5 months ago • 0 comments

Description

If I set an AEM_PAGES_URL in a .env file, this is only respected on initial aem up invocation. When I switch branches and the proxy updates, it's as if that setting doesn't exist, and it uses the default URL.

To Reproduce Steps to reproduce the behavior:

  1. Add a .env file and set AEM_PAGES_URL as documented https://www.npmjs.com/package/@adobe/aem-cli
  2. run aem up
  3. now switch to a new branch in a different terminal window
  4. The proxy url changes

Expected behavior proxy url should stay the same

Screenshots

ssteimer@Seans-M3-Macbook-Pro ups % aem up
    ___    ________  ___                          __      __ v16.5.15
   /   |  / ____/  |/  /  _____(_)___ ___  __  __/ /___ _/ /_____  _____
  / /| | / __/ / /|_/ /  / ___/ / __ `__ \/ / / / / __ `/ __/ __ \/ ___/
 / ___ |/ /___/ /  / /  (__  ) / / / / / / /_/ / / /_/ / /_/ /_/ / /
/_/  |_/_____/_/  /_/  /____/_/_/ /_/ /_/\__,_/_/\__,_/\__/\____/_/

info: Starting AEM dev server v16.5.15
info: Local AEM dev server up and running: http://localhost:3000/
info: Enabled reverse proxy to https://main--ups-dev-da--aemsites.aem.page
opening default browser: http://localhost:3000/
git HEAD or remotes changed, reconfiguring server...
Updated proxy to https://main--ups--aemsites.hlx.page

Version: v16.5.15

shsteimer avatar Sep 05 '24 22:09 shsteimer