-
Notifications
You must be signed in to change notification settings - Fork 15
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
🌗 Remote CDN and theme button for the article theme #468
Conversation
- Update for both article/book themes - Update dev documentation
🦋 Changeset detectedLatest commit: b71b6b1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Thanks for the pics in the PR, really helpful.
@@ -11,7 +11,7 @@ import { | |||
import { responseNoArticle, responseNoSite, getDomainFromRequest } from '@myst-theme/site'; | |||
|
|||
const CONTENT_CDN_PORT = process.env.CONTENT_CDN_PORT ?? '3100'; | |||
const CONTENT_CDN = `http://localhost:${CONTENT_CDN_PORT}`; | |||
const CONTENT_CDN = process.env.CONTENT_CDN ?? `http://localhost:${CONTENT_CDN_PORT}`; |
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.
Clever. I like it.
Thanks for the changes @agahkarakuzu -- really awesome to have you contributing here. Excited to see your launch in a few weeks. 🚀 |
Thank you so much @rowanc1! The event will be much cooler thanks to all the amazing effort you've put in this project! |
Fixes #342.
ThemeButton
to the article theme. Tested locally:CONTENT_CDN
through env to replacelocalhost:{port}
withhttps://remote.example.com
.Note
Right before opening this PR, I realized that a similar PR #346 exists, enabling
{hostname}:{port}
. This is slightly different as the purpose is to connect to a remote CDN host (tested withhttps://cdn.neurolibre.org
) without specifying a port. Happy to account for the changes from #346 to avoid conflict.