Next.js Discord

Discord Forum

lifecycle methods

Unanswered
Willow shoot sawfly posted this in #help-forum
Open in Discord
Willow shoot sawflyOP
Is there a place to run code at the start of execution?

E.g. I'd like to do something like "As soon as the server starts, before binding, try loading the Config file", so I can throw an exception and prevent the server from starting.

3 Replies

just run code before next start?
@Willow shoot sawfly did you end up finding a method?
Willow shoot sawflyOP
nope, I've not been working outside company time