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

Does it support incremental site generator? #4

Open
LorhanSohaky opened this issue Mar 23, 2021 · 6 comments
Open

Does it support incremental site generator? #4

LorhanSohaky opened this issue Mar 23, 2021 · 6 comments

Comments

@LorhanSohaky
Copy link

No description provided.

@SergeyMyssak
Copy link
Owner

Hello @LorhanSohaky!

What do you mean by "incremental site generator"?

@LorhanSohaky
Copy link
Author

@BlakePetersen
Copy link

ISR is just a revalidation strategy, I don't see how it would affect the generation of sitemaps.

Can you provide more information as to what you're looking to achieve?

@LorhanSohaky
Copy link
Author

My use case is that I have a huge list of products and blog posts (example "product/1", "product/2", ..., "blog/post1",...). So my idea is that daily I make a request to know if there are new publications and new products.

The requests are relatively expensive so I have to avoid using SSR

@BlakePetersen
Copy link

Yep, that definitely makes sense.

I have a similar use case where we aren't full migrated to Next.js and need to include a list of routes from the legacy platforms along with the routes in our static path map. We don't have a massive number of pages so I am going to avoid setting up a cron and fetch that list of routes at build time and drop it into the "include" property array.

I think it makes a lot of sense to grab that list nightly rather than at build if it's a heavy / expensive process.

@LorhanSohaky
Copy link
Author

Yep, that definitely makes sense.

I have a similar use case where we aren't full migrated to Next.js and need to include a list of routes from the legacy platforms along with the routes in our static path map. We don't have a massive number of pages so I am going to avoid setting up a cron and fetch that list of routes at build time and drop it into the "include" property array.

I think it makes a lot of sense to grab that list nightly rather than at build if it's a heavy / expensive process.

In my use case every day new pages are created so I would have to do a build every day

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

3 participants