daisyui
daisyui copied to clipboard
docs: change Next.js example repository to use the app directory
On which page do you see this issue?
https://daisyui.com/docs/install/
Describe the issue
The Next.js example repository uses the pages
instead of the app
directory. As mentioned in the Next.js 13.4 release blog post, the App router is now considered stable and production-ready. So, the main example repository for Next.js should be based on this now-recommended approach. The existing one with the pages
directory can be either removed or kept in case somebody would want to refer to it.
Can I do this?
That would be great ๐
You can fork it from here, install new dependencies and apply file structure changes. Then give me the link to update.
It looks like Next.js 13 on Stackblitz can not process Post CSS probably because SWC is written in Rust and the binary can not work in StackBlitz:
https://stackblitz.com/edit/stackblitz-starters-rzdbmx
Their suggested workaround doesn't work either: https://nextjs.org/docs/messages/failed-loading-swc
I'm keeping the Stackblitz example on Next 12 for now until the issue is fixed by Next or StackBlitz.