Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next.js app example with their new app directory approach #90

Open
colinscz opened this issue Aug 4, 2023 · 0 comments
Open

Next.js app example with their new app directory approach #90

colinscz opened this issue Aug 4, 2023 · 0 comments

Comments

@colinscz
Copy link

colinscz commented Aug 4, 2023

Expected Behavior

Next.js example with the new app directory.
https://nextjs.org/docs/app/building-your-application/upgrading/app-router-migration

Actual Behavior

Currently there is an example with the pages directory, which is not the primary focus of Next.js anymore since they gradually move towards doing everything from the /app dir.

Issue / Questions

It would be great if you guys could setup an example with the correct headless package and with an app dir project. I think for now people will still be interested in both approaches, until the /pages approach is removed/not accepted anymore.

  • Should the headless nodejs or the headless client npm package be used with server components?
    I currently work on a project using headless-client which I migrated to the app dir.

There is a good example provided from the team behind Strapi: https://github.com/strapi/nextjs-corporate-starter/tree/main
It would be great if something similar could be provided by you guys with the WKND tutorial. There are probably a couple of changes in how it should be built and retrieved from AEM for example for Server-Side-Rendering (as mentioned in my question above).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant