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

💬 Question - This is mainly utilising SSR, how can I turn it into SSG instead? #207

Open
taheramr opened this issue May 31, 2023 · 0 comments

Comments

@taheramr
Copy link

taheramr commented May 31, 2023

Firs of all amazing work on this template, I find it really nice to use the approach you guys are using with fragments and codegen!

I'm finding it challenging to use SSG instead of SSR in such template, given the fact that each ctf-component ( some of them ) has a graphql.tsx file that does the custom fetching if provided with an id on its own that means it'll always request data from contentful on page reload?

I'm wondering if we have a very complex graphql query in each page, each page then will have nested queries and will take a while until everything loads, is there a guide somewhere to use SSG with this? also, any plans to add the new app directory?

Cheers!

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