'Like :meth:`Flask.before_first_request`.  Such a function is
executed before the first request to the application.'

def before_app_first_request(self, f):

    self.record_once((lambda s: s.app.before_first_request_funcs.append(f)))
    return f
