magento / pwa-studio

🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.07k stars 683 forks source link

[bug]: {"error":"No definition for env.MAGENTO_BACKEND_URL"} upward PHP #3635

Closed Watch3ruk closed 2 years ago

Watch3ruk commented 2 years ago

Upward php ( Magento_UpwardConnector) throws {"error":"No definition for env.MAGENTO_BACKEND_URL"} upward js works fine on this same instance .

To reproduce

Steps to reproduce the behavior:

  1. run latest all up to date PWA on magento instance using upward php and upward js .

Expected behavior

in both cases we will have a store view of Venia

Screenshots

https___store ostoya co uk - Google Chrome 06_01_2022 10_04_37 upward js https___store ostoya co uk - Google Chrome 06_01_2022 10_04_24 upward php

Possible solutions

changes made to Magento_UpwardConnector when 12.0 or 12.01 was released

Please complete the following device information:

Please let us know what packages this bug is in regards to:

m2-assistant[bot] commented 2 years ago

Hi @Watch3ruk. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.

Add a comment to assign the issue: @magento I am working on this


anthoula commented 2 years ago

@magento export issue to JIRA project PWA as Bug

github-jira-sync-bot commented 2 years ago

:white_check_mark: Jira issue https://jira.corp.magento.com/browse/PWA-2532 is successfully created for this GitHub issue.

tjwiebell commented 2 years ago

Any runtime variables needed by the application will need to be configured at the web server layer, they will not be automatically injected from the .env. For nginx I would expect to see lines like fastcgi_param MAGENTO_BACKEND_URL https://venia.magento.com;.

https://developer.adobe.com/commerce/pwa-studio/tutorials/production-deployment/checklist/#important-environment-variables