AOEpeople / aoe_technology_radar

Create your own Technology Radar: A static site generator for a full featured Technology Radar. Features: Quadrants, Rings, Dashboard, Radar Visualization, Item History, Search etc..
http://www.aoe.com/techradar
Other
281 stars 125 forks source link

Feat: Hot Reload on Markdown changes #485

Open comp615 opened 1 month ago

comp615 commented 1 month ago

It would be nice if as someone is editing, or adding markdown files, the Next.JS server Hot reloaded. Currently, this does not work because the actual data files are statically generated inside bin/techradar.

However, it would be great if something like chokidar or watchman could be used to listen for *.md changes, and rerun npm run build:data. Doing this manually seems to cause the change to be picked up and the page to reload instantly!

pboeder commented 1 week ago

@comp615 , we have a solution for this in our fork. I have it on my list to provide a PR in this upstream repo 👍

https://github.com/porscheofficial/porschedigital-technology-radar/commit/a76a51255786ce71a7459b758b9721f5aaef0af1