Open niedfelj opened 5 years ago
Also, the instructions here forget to mention that you need to run mkcert -install
https://shopify.github.io/slate/docs/create-a-self-signed-ssl-certificate
Can someone also please explain why there are 3 different ways to view dev (shopify domain, localhost, and local IP/external). Given that the preview bar is completely broken and has been since October #420 for localhost and local IP, I'm still accessing via shopify domain, but am not sure what the differences are.
@niedfelj I'm not on the Shopify team, but can contribute this:
The localhost
domain will inject styles without refreshing the page. This is automatically opened in your browser when you run npm start
.
The shopify
domain requires changes be uploaded/pushed before things are viewable here.
Developing "locally" with Slate is interesting/confusing though, as it relies on an externally hosted database and API.
Problem
The new setup tries to load assets from the external IP instead of localhost requiring that certs constantly be regenerated
Replication steps
Install the latest slate
More Information
Can you at least update the documentation to explain the reasoning behind this? It was much easier before to have everything loading from localhost.