We have set up Adobe Commerce 2.4.7-p1 with sample data and successfully configured PWA Studio to be compatible by following these steps:
Ran the command:
yarn create @magento/pwa
Set up a custom origin:
yarn buildpack create-custom-origin ./
Exported the required environment variable:
export NODE_OPTIONS=--openssl-legacy-provider
Built the project:
yarn build
The dist folder was generated using the commands mentioned above. The URL https://pwa-studio-demo.local/ was directly pointed to the dist folder, enabling the frontend to function correctly. (yarn start or any other commands not executed)
The frontend is functioning correctly (e.g., homepage, category page, and product details page are loading as expected). However, in the footer, we observe the following issue:
{{#pageTypeNonce}}{{#webpackChunks}}{{/webpackChunks}} {{/pageTypeNonce}}
No additional installations or customizations have been made on the Adobe Commerce side apart from the following required extensions:
magento/pwa
magento/pwa-commerce (added via Composer).
This is a fresh setup of both Adobe Commerce and PWA Studio with no customizations made yet.
To reproduce
Steps to reproduce the behavior:
Expected behavior
Similar to the Venia demo website, the nonce should correctly load the root component file, ensuring that Mustache templates are not displayed.
Screenshots
Possible solutions
Is there any command I might have missed executing, such as starting the UPWARD server, running the UPWARD connector, or any other step needed to make it function like the Venia demo?
Debug Report
$ buildpack generate-build-report
ℹ Generating build report for pwa-studio-demo@0.0.1. This may take a moment.
ℹ Inspecting Dependencies
Found 9 @magento dependencies in yarn.lock
@magento/pwa-buildpack @ 11.5.3
@adobe/apollo-link-mutation-queue @ 1.0.2
@magento/babel-preset-peregrine @ 1.3.3
@magento/eslint-config @ 1.5.3
@magento/pagebuilder @ 9.3.2
@magento/peregrine @ 14.4.1
@magento/pwa-theme-venia @ 2.4.0
@magento/upward-security-headers @ 1.0.17
@magento/venia-ui @ 11.5.0
ℹ Inspecting Magento Backend
Not using sample backend.
Backend is UP!
ℹ Inspecting System
OS: #140~20.04.1-Ubuntu SMP Wed Dec 18 21:35:34 UTC 2024
Node Version: v20.5.1
NPM Version: 10.5.0
We haven't used the Upward Connector in Magento 2 yet. Initially, we attempted to install the Magento 2 Upward Connector via Composer. However, since we're using PHP 8.3, there were dependency issues preventing the installation.
As an alternative, we've implemented Apache 2 modifications to handle GraphQL and media requests by redirecting them to the Magento 2 backend. Below is an example of the configuration we are using:
ProxyPass /rest http://127.0.0.1:91/rest
ProxyPassReverse /rest http://127.0.0.1:91/rest
ProxyPass /graphql http://127.0.0.1:91/graphql
ProxyPassReverse /graphql http://127.0.0.1:91/graphql
ProxyPass /media http://127.0.0.1:91/media
ProxyPassReverse /media http://127.0.0.1:91/media
This setup allows us to route GraphQL and other API calls directly to the Magento 2 backend without relying on the Upward Connector.
Solved! Go to Solution.
Views
Replies
Total Likes
@AnkitJasani29 could you confirm this issue is same as https://github.com/magento/pwa-studio/issues/4369 ? If so, the conversation continues on Github.
Views
Replies
Total Likes
@AnkitJasani29 could you confirm this issue is same as https://github.com/magento/pwa-studio/issues/4369 ? If so, the conversation continues on Github.
Views
Replies
Total Likes
Yes it's same @tmj
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies
Views
Likes
Replies