|
|
|
|
|
by YetAnotherNick
1096 days ago
|
|
In fact it's quite opposite. App directory has lot of quirks that I learnt building in it after experience in react. Just after using it for two weeks I found there is no global 404, you can't use things like window and document, server components are close to useless where you can't even read cookies in server component(you can't read it in client component in server as well even though next has it), it's better to stay away of API routes, you can't use environment variables in prod but you could use in dev, you could easily trip yourself by using 'next/router' instead of 'next/navigation' etc. |
|
https://nextjs.org/docs/app/api-reference/functions/cookies