-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Force to use proxied API for footer and search #6768
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
@@ -18,7 +18,6 @@ class DockerBaseSettings(CommunityDevSettings): | |||
PRODUCTION_DOMAIN = 'community.dev.readthedocs.io' | |||
PUBLIC_DOMAIN = 'community.dev.readthedocs.io' | |||
PUBLIC_API_URL = f'http://{PRODUCTION_DOMAIN}' | |||
RTD_PROXIED_API_URL = PUBLIC_API_URL |
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.
Shouldn't we keep the setting, to make it easier for users to override? I think supporting the setting is fine, I just want a default that is _/
as we have now.
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.
We had that setting to pass it down to context during build time. But we want to apply this change to everyone. So, not sure if we can have both.
This reverts #77 Ref readthedocs/readthedocs.org#6768
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.
I think we should get this shipped and make sure to QA it on release. I'll add it to the card. 👍
This needs to regenerate the static js files, I wasn't able to do it with my node setup for now... I'll try later. |
I was able to run npm now, turns out js files are already up to date, tested it locally to confirm too. |
This reverts:
And force the use of the proxied api to all docs.
This wasn't done before because .com wasn't ready.
Note for users using a custom installation and not using subdomains, you'll need to edit these files to point to your main domain.