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鈥檒l 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
Member

These changes are to support the fix in executablebooks/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
Member

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?

@stevejpurves stevejpurves marked this pull request as draft April 2, 2024 20:34
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.

None yet

3 participants