2

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.

Jeroen
  • 60,696
  • 40
  • 206
  • 339
Ascolon
  • 97
  • 1
  • 7
  • 1
    Similar to what's asked in this question: [Next.js run function/script when starting app](https://stackoverflow.com/questions/62134289/next-js-run-function-script-when-starting-app). – juliomalves Jun 01 '21 at 18:35

0 Answers0