-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor and simplify PWADevServer host/port handling #339
Conversation
- chore: Remove hand-rolled implementations of privilege escalation and replace with `devcert`. - refactor: Remove individual options for SSL and unique host, combining them into one thing. Fixes #307. fix: add new refactor to staging server
The |
…o-research/pwa-studio into zetlen/fix-devserver-porthandling
Generated by 🚫 dangerJS |
@mhhansen If you want to help today, I would be real grateful if you could take a look at this one. This one is an enabler of other people getting work done, as I think it removes a lot of bugs and a lot of code burden from us. |
1. works OK
2. You first needs to run interactive mode 3. (improve) declare a default subdomain to avoid
If you provide the
4. add to venia .env file
5.
Couldn't reproduce any of the I'll run a few more tests with SW enabled to see how it behaves. Cause I ended up with MagentoRouteHandler error, from the BTW: tested over Win10, and after tweaking a few scripts from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sent a minor thing related to the default SUBDOMAIN name to avoid undefined
in the final url
More accurately reflects the contents of the variable. Fixes #337.
4d3fc5a
to
b4bdc95
Compare
b4bdc95
to
accee8f
Compare
That certainly was a fun CI adventure. |
This PR is a:
[ ] New feature
[x] Enhancement/Optimization
[x] Refactor
[ ] Bugfix
[ ] Test for existing code
[ ] Documentation
Summary
When this pull request is merged, it will pull out a lot of our hand-rolled hostname and SSL certificate handling, in favor of davewasmer/devcert which has made great strides and handles most of what we want to handle.
configureHost
utility exposed in Buildpack. Unique host generation can now be shared by both dev and staging.~/.config/pwa-buildpack.db
is gone for now. No promises on whether it will return.configureHost
utility to create a unique url.provideSecureHost
config from documented environment variables, which have been added toexample.env
.Additional information
Some rules of thumb about the default implementation:
MAGENTO_BUILDPACK_PROVIDE_SECURE_HOST=1
andMAGENTO_BUILDPACK_SECURE_HOST_ADD_UNIQUE_HASH=1
. This produces readable domains and unique ports that work for most cases.lerna link convert
methodology that had caused so many conflicts. Many of the changes are just reorganizing dependency config with no functionality change.