mystmd icon indicating copy to clipboard operation
mystmd copied to clipboard

🚦 set CONTENT_CDN_HOST in env of development server

Open stevejpurves opened this issue 1 year ago • 1 comments

These changes are to support the fix in https://github.com/executablebooks/myst-theme/pull/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

stevejpurves avatar Apr 01 '24 21:04 stevejpurves

@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?

rowanc1 avatar Apr 02 '24 17:04 rowanc1