Skip to content
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

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

Open
shsteimer opened this issue Sep 5, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@shsteimer
Copy link

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 shsteimer added the bug Something isn't working label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant