Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Is ISR and dynamic tenants supported? #4

Answered by micheleriva
nicosh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @nicosh!
With Next.js, you can always have access to the hostname variable as it is a property of a standard Express.js' req object. If you're using a custom server, you can also apply custom middleware to elaborate hostname and adding some more information to the req object, which will be sent to Next.js later.

  • From what I tested, ISR is still supported
  • You can use dynamic tenants as the Krabs config is just a JavaScript file, and it can depend on external data sources such as APIs

Does this answer your questions?
Cheers!

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@nicosh
Comment options

@micheleriva
Comment options

@dayvista
Comment options

@micheleriva
Comment options

@micheleriva
Comment options

Answer selected by micheleriva
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