Skip to content

fix(flashlight): export PRESTAFLOW_FO_URL instead of PRESTAFLOW_PS_URL#2

Merged
PrestaEdit merged 1 commit into
mainfrom
fix/flashlight-env-var
Jul 11, 2026
Merged

fix(flashlight): export PRESTAFLOW_FO_URL instead of PRESTAFLOW_PS_URL#2
PrestaEdit merged 1 commit into
mainfrom
fix/flashlight-env-var

Conversation

@PrestaEdit

Copy link
Copy Markdown
Contributor

Bug

The v2 rewrite exports PRESTAFLOW_PS_URL=http://localhost:<port> when Flashlight is up, but the PHP library reads PRESTAFLOW_FO_URL (and derives BO as ${FO_URL}admin-dev/) — see TestsSuite.php:715-720.

Result: the exported env var was ignored, tests kept hitting whatever URL the consuming repo's .env pointed at (or the built-in localhost default).

Fix

Export PRESTAFLOW_FO_URL with a trailing slash so BO defaulting yields http://localhost:8000/admin-dev/ — matching Flashlight's admin route.

Test plan

  • npm run lint clean
  • npm test 41/41 pass (no test change needed — orchestration is not unit-tested)
  • dist/ rebuilt
  • Smoke test on PrestaFlow/prestaflow-prestashop — coming in a follow-up branch

🤖 Generated with Claude Code

…ad of PRESTAFLOW_PS_URL

The PHP library reads PRESTAFLOW_FO_URL for the front-office URL and
derives PRESTAFLOW_BO_URL as ${PRESTAFLOW_FO_URL}admin-dev/ when
PRESTAFLOW_BO_URL is not set (see TestsSuite.php:715-720). Exporting
PRESTAFLOW_PS_URL had no effect — the library did not read it.

The trailing slash is required so BO defaulting yields
http://localhost:8000/admin-dev/ (matching Flashlight's admin route)
instead of http://localhost:8000admin-dev/.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@PrestaEdit
PrestaEdit merged commit 3a5742f into main Jul 11, 2026
1 check passed
@PrestaEdit
PrestaEdit deleted the fix/flashlight-env-var branch July 11, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant