aem-spa-project-core
aem-spa-project-core copied to clipboard
Support for RSC and NextJs 13+ App router
Is your feature request related to a problem? Please describe.
The current support for NextJs is based off their version 12 architecture Pages router, and is not suited to use with App router which leverages React Server Components.
The current solution for SPA currently supports client applications only, so using in remote headless configuration is not possible when using server rendered remote screens.
Describe the solution you'd like
Support for the newer versions of NextJs and App router with use of server rendered screens.
Describe alternatives you've considered
The current solution assumes the entire application is rendered on the browser, so using Pages router still works. However for more performant front-ends, this is limiting.