Skip to content

Next.js RSC vs Static Exports Mode Best For PWA? #140

Closed Answered by DuCanhGH
bestickley asked this question in Q&A
Discussion options

You must be logged in to vote

@bestickley

RSC vs Static Exports

They are not mutually exclusive, fyi.

Well, if you keep your pages dynamically generated, just don't precache them and you should be fine :) @serwist/next serves them with the NetworkFirst strategy out of the box. If you want to go down the offline-first route, it's recommended that you statically generate your application and keep dynamic content on the client (I'm not sure about PPR, please do your research on how it works, thanks!). To precache the pages, use the additionalPrecacheEntries option.

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
8 replies
@bestickley
Comment options

@DuCanhGH
Comment options

@bestickley
Comment options

@DuCanhGH
Comment options

@bestickley
Comment options

Answer selected by bestickley
Comment options

You must be logged in to vote
1 reply
@bestickley
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants