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

🚦 set CONTENT_CDN_HOST in env of development server #1043

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

stevejpurves
Copy link
Contributor

These changes are to support the fix in jupyter-book/myst-theme#346 where url rewriting should honor the HOST variable used to start the mystmd development server.

This PR also changes the existing log messages to accurately report the usage of HOST rather than always citing localhost

@rowanc1
Copy link
Collaborator

rowanc1 commented Apr 2, 2024

@stevejpurves how does this work with the --keephost option? I think we might need to change something around here:
https://github.com/executablebooks/mystjs/blob/main/packages/myst-cli/src/build/site/start.ts#L85

The host variable is always set to localhost in that block to get around an earlier bug. Does the host variable set both the app and content servers? It looks like this is only targeting the content server?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants