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

[feature] function to receive all Pages #132

Open
Tylopilus opened this issue Sep 8, 2022 · 0 comments
Open

[feature] function to receive all Pages #132

Tylopilus opened this issue Sep 8, 2022 · 0 comments

Comments

@Tylopilus
Copy link

For NextJS SSG all Paths should be known
When integrating AEM with NextJS it would be really beneficial to make use of SSG. For this to work all Paths need to be fetched upfront.
Describe the solution you'd like
The best way to achieve this is a similar function to fetchModel but rather fetchPages. A good example how this is solved is from the guys at builder.io. Their builder-client offers this functionality in conjunction with revalidation. Here is an example repo
https://stackblitz.com/edit/nextjs-builder?file=pages%2F[[...page]].tsx

Describe alternatives you've considered
Alternatively one could leverage SSR which is fine but always brings unwanted requests to publisher for static content.

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

No branches or pull requests

1 participant