-
Notifications
You must be signed in to change notification settings - Fork 4
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
Node should serve files directly to puppeteer #97
Comments
Let's try to factor out common code between this and phetsims/chipper@9d74fe9 |
The usages of |
The other part for aqua is in aqua/js/local/puppeteerQUnit.js Line 85 in 0cf643e
|
In phetsims/perennial#175 (comment) I was surprised that I found that when using http.createServer to load a sim in binder, a bug in supplying the MIME type (Content-Type header) broke the sim. Why does this not occur with the Continuous Server? perhaps because I was specifying an svg incorrectly as a |
In regards to #97 (comment), this no longer uses localTestingURL because of its usage change over in #97 (comment) in hook-pre-commit to use withServer, so I think this is really just about ContinuousServer.js |
Seems possible to serve that way, but would it be a performance hit? Seems nice to factor it out so it's not needed if possible. |
I'm not very familiar with it, but it seems that |
ContinuousServer.startServer begins and runs until the program stops. Sounds like we should leave it as is. I think this issue is outdated and should be closed. |
Closing sounds good to me. |
I also want to add that we now have a puppeteer-based client for CT, see #143 |
From #90
Another way to address this would be to have node serve the files to puppeteer instead of relying on the developer localhost. We implemented this for https://github.com/phetsims/phet-io/issues/1664 and the same should be possible here.
The text was updated successfully, but these errors were encountered: