-
-
Notifications
You must be signed in to change notification settings - Fork 995
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
fix(admin-ui): Allow serving admin-ui on custom domains #1386
fix(admin-ui): Allow serving admin-ui on custom domains #1386
Conversation
…llows accessing admin-ui on custom local domains, that differs from localhost
Hi, I would rather solve this by adding a new option to the AdminUiPlugin init options which allows you to pass arbitrary arguments to the |
Good catch. I did some improvements as you pointed, but unfortunately unable to test this on dev-server due to
lerna bootstrap + lerna build is okay. This happens each time I'm trying to use |
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.
Thanks for this! Just a couple of changes in the documentation is all.
Also, can you please make this PR against the minor
branch? Since it is a new feature, per semver it will go in the next minor release (1.5.0).
Regarding problems getting compileUiExtensions()
to work in the dev server - yes I am aware of this and I believe it relates to the way Lerna symlinks the dependencies. For testing that part, I usually use Verdaccio to publish a local version (there's even an npm script for that in the root package.json) and then install it in a different location and test that way. A bit slow I know, but it works.
…ss arguments without values
# Conflicts: # packages/ui-devkit/src/compiler/compile.ts # packages/ui-devkit/src/compiler/types.ts
Hey, fixed conflicts. Made some changes to pass arguments in more elegant way |
Thanks! |
Suppose you have domain vendure.local and you resolve this domain to 127.0.0.1 via /etc/hosts.
Using
compileUiExtensions
with enabled dev mode you will be able to compile and serve, but accessinghttps://vendure.local:4002/admin
you will getInvalid host header
error.Supplying parameter
disableHostCheck
toangular.json
fix this issue.Serving happens only on dev mode, so no strict safety is needed.