daisyui icon indicating copy to clipboard operation
daisyui copied to clipboard

docs: change Next.js example repository to use the app directory

Open hb20007 opened this issue 1 year ago โ€ข 2 comments

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.

hb20007 avatar May 29 '23 12:05 hb20007

Can I do this?

dmend3z avatar May 29 '23 20:05 dmend3z

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.

saadeghi avatar May 29 '23 20:05 saadeghi

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.

saadeghi avatar Jun 07 '23 14:06 saadeghi