@experius-galaxy/storefront-concept v0.0.2
Documentation for Magento PWA Studio packages is located at https://pwastudio.io.
Getting started
Install dependencies by running
yarn
1. Install a custom origin by running
npx buildpack create-custom-origin ./
- You can now run the storefront by running
yarn watch
After running this setup you should see an url in the console on which you can reach te storefront concept.
##Overriding a component from node_modules
To override for example the Logo
component in @experius-galaxy/ui
you can
use the overrides.js
file.
This file exposes an array with tuple in the [src, target]
format. The source
will be overridden with the target.
The require.resolve
makes sure that the files you're trying to replace are existing.
Note: this technique can be used for all files (css, svg, components).
##Troubleshooting
#####Browser doesn’t trust the certificate
For macOS, delete the devcert directory. PWA Buildpack will regenerate certificates and fix the issue.
cd ~/Library/Application\ Support/
rm -rf devcert
npx buildpack create-custom-origin ./
When this doesn't work find the certificate in keychain and change the trust settings.
The certificate you should be looking for is called something like galaxy-storefront-concept-ocxy9.local.pwadev
.
You can then click on the certificate and click the "Thrust" dropdown. There select "Always thrust" in the top dropdown.