Next.js execution of code before starting the application through, similar to APP_INITIALIZER from Angular

Viewed 163

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.

0 Answers
Related