-
Notifications
You must be signed in to change notification settings - Fork 31
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
serve static hook error #609
Comments
JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-1786 |
The naïve fix is not to generate the vscode config if The better fix is in generator-aio-app where based on the app config (app.hasFrontEnd) we either generate the launch configuration for Chrome debugging, or not. So therefore we need to determine if the |
This may be naïve, but I figured if a developer has a hook for As an aside, looking at this diagram, would it be correct for us to skip this hook altogether if there are no static assets to serve? |
I +1 Michael's comment with an addition: console.log a warning that the hook will not be applied. |
+1 what @MichaelGoberling and @moritzraho said |
We are already skipping the hook if we don't have a front end, that is not the problem I am facing. The problem is strictly if the serve-static hook is set, logically to the vscode config generator, there is no front end to configure for, since there is no way to know this info, thus |
Although we don't provide a warning when we skip it however |
Sorry @shazron, my original answer was naïve. Looking at the diagram again, it seems If we wanted to support chrome debugging of custom-served web assets, we'd have to introduce a mechanism for hook implementers to return data, in this scenario a |
PR #617 |
Reproduce Scenario (including but not limited to)
Steps to Reproduce
add a hook,
serve-static: echo serve-static
aio app run
Environment Info
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered: