MDX Remote Gitub #1277
-
I have MDX files stored in a separate repository, which I integrate into my documentation using However, this approach is deprecated. The documentation states: "We now recommend to fetch MDX files from a GitHub repo directly and trigger a static build. You may also use other content sources like Sanity." I don't quite get the bolded part of this statement, isn't that triggered by the webhook? Is there an example for the recommended approach? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That approach fetches all files from GitHub using their API, which is pretty consuming and slow. GitHub isn't a full CMS, and I would recommend to use If you want to further automate the build, build a pipeline that triggers a build automatically when a new commit pushed (receive the event with webhook). Couldn't help much on that, since it varies depending on your hosting platform You can continue using the current GitHub remote integration, it is still working |
Beta Was this translation helpful? Give feedback.
That approach fetches all files from GitHub using their API, which is pretty consuming and slow. GitHub isn't a full CMS, and I would recommend to use
git pull
to pull markdown content from a repo to the content directory, and run build.If you want to further automate the build, build a pipeline that triggers a build automatically when a new commit pushed (receive the event with webhook). Couldn't help much on that, since it varies depending on your hosting platform
You can continue using the current GitHub remote integration, it is still working