Skip to content
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 missing hostWhitelist in FastBoot's package.json manifest #574

Merged

Conversation

simonihmig
Copy link
Collaborator

@simonihmig simonihmig commented Oct 20, 2020

Adds accessing request.host to fastboot-app that reproduces the missing FastBoot package.json data (here hostWhitelist) reported in #160. This triggers the You must provide a hostWhitelist to retrieve the host error making the app's FastBoot tests fail.

The second commit adds a fix, exposing the hostWhitelist manifest field, that got lost in the custom compat adapter, but still seems to be required and expected by fastBoot here.

Adds accessing `request.host` to `fastboot-app` that reproduces the missing FastBoot package.json data (here `hostWhitelist`) reported in embroider-build#160.
@simonihmig simonihmig changed the title Add failing test for missing data of FastBoot's package.json Fix missing hostWhitelist in FastBoot's package.json manifest Oct 20, 2020
@simonihmig
Copy link
Collaborator Author

@ef4 this is now containing both the reproduction of the problem I had (and wrongly contributed to #160) and a simple fix. Hope this looks ok!

@simonihmig simonihmig added the bug Something isn't working label Oct 20, 2020
@simonihmig simonihmig requested a review from ef4 October 20, 2020 22:14
@wagenet
Copy link

wagenet commented Oct 21, 2020

I was hitting the same problem. This fix works for me.

@ef4 ef4 merged commit f86fe66 into embroider-build:master Oct 21, 2020
@ef4
Copy link
Contributor

ef4 commented Oct 21, 2020

Thanks, nice work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants