hashicorp / next-mdx-remote

Load MDX content from anywhere
Mozilla Public License 2.0
2.67k stars 140 forks source link

Page should fast-refresh when saving related .mdx file #101

Closed NateRadebaugh closed 3 years ago

NateRadebaugh commented 3 years ago

If I'm writing a blog post, I like to see the rendered HTML as I'm writing the post. As it is now, next doesn't know the content has changed, so it doesn't re-render/update getStaticProps.

Should there be something that watches for changes in some configurable ./src/_posts dir and re-updates?

helloworld commented 3 years ago

Check out: https://github.com/hashicorp/next-mdx-remote/issues/100. I've been using the library suggested (next-remote-watch) and it's been working perfectly for me.

NateRadebaugh commented 3 years ago

Thanks!

xairoo commented 1 year ago

Fast load is possible, no need to reload the whole site! Have a look at https://github.com/hashicorp/next-mdx-remote/issues/100#issuecomment-1355866820.