Next.js Discord

Discord Forum

Show contents of text file upon change

Unanswered
Palomino posted this in #help-forum
Open in Discord
PalominoOP
I have a text file being written to by another process (file name stays the same but contents change).. how could I set up a page to read this file and update based on when the contents of the file change?

I’ve tried different ways of fs.watch but can’t figure it out on next

0 Replies