-
Notifications
You must be signed in to change notification settings - Fork 548
Use relative paths for Insights #312
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
Conversation
J0Nreynolds
left a comment
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.
Just had one question about the change to the package.json file.
| "name": "frontend", | ||
| "version": "0.2.0", | ||
| "private": true, | ||
| "homepage": ".", |
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.
Was this necessary to get relative paths working?
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.
Yup, this rewrites the urls from /something.css to ./something.css, so it doesn't try to access the url root (if the app was hosted on example.com/proxy/1234/ it would correctly access it in example.com/proxy/1234/something.css instead of example.com/something.css.
facebook-github-bot
left a comment
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.
@edward-io has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
@edward-io merged this pull request in 465dbaf. |
Summary: This change allows Insights to work with [Jupyter server proxy](https://github.com/jupyterhub/jupyter-server-proxy). However, Sagemaker is broken due to https://forums.aws.amazon.com/message.jspa?messageID=914445#914445. Pull Request resolved: meta-pytorch#312 Reviewed By: vivekmig Differential Revision: D20252333 Pulled By: edward-io fbshipit-source-id: f90cfd9dab46a479319774dbf6263d75e92a9be1
This change allows Insights to work with Jupyter server proxy.
However, Sagemaker is broken due to https://forums.aws.amazon.com/message.jspa?messageID=914445#914445.