Setup a storefront project
using yarn
In your terminal, navigate to the directory where you want to install your storefront project and run
yarn create @magento/pwa
Select a directory for the installation
cd pwa-studio-fundamentals
Adding the Custom hostname and SSL Cert.
yarn buildpack create-custom-origin ./
NOTE: If you encounter any errors while creating a custom hostname and SSL with node version 18.15.10, please run the following command:
export NODE_OPTIONS=–openssl-legacy-provider
Start the development server
Yarn watch