How can we execute code before starting our NextJS application logic? Specifically, I want to download data from the server before anything else happens, and write them to the repository.
That is, I need something analogous to APP_INITIALIZER
from Angular.