next.js next-theme page router
Answered
Sora posted this in #help-forum
Original message was deleted.
Answered by joulev
Put the theme provider into _app.js instead. Refer to the installation guide https://github.com/pacocoursey/next-themes?tab=readme-ov-file#with-pages
11 Replies
Sora
here I sharetailwindcss and document.tsx code
Original message was deleted
Put the theme provider into _app.js instead. Refer to the installation guide https://github.com/pacocoursey/next-themes?tab=readme-ov-file#with-pages
Answer
@joulev Put the theme provider into _app.js instead. Refer to the installation guide <https://github.com/pacocoursey/next-themes?tab=readme-ov-file#with-pages>
Sora
another very quick question, it does not appear unless I f5, what could be the reason for this?
thx
i love u
Though I suppose _document.js is a special file so nextjs has trouble doing live reload for it. Been a while since I last used the pages router
Sora
its work rn
thanks
❤️
my bad