Skip to content

mix SSR and CSR? #21

Answered by frandiox
fimbault asked this question in Q&A
Discussion options

You must be logged in to vote

@fimbault Hello! In Vitedge there are no "build time props". However, since it caches at the edge, as long as you provide a long enough max-age for the props, it can be considered as static. And then yes, you can use API calls to get dynamic data without caching if you want that. Caching the rendered HTML can also be controlled separately but I guess you've noticed that already.

I recommend testing it quickly using https://github.com/subhendukundu/vitedge-react-template and see if it fits your needs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fimbault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants