Life Cycle Hook
There are two hook functions that can be called.
src/index.ts
import { summerStart, handler } from '@summer-js/summer'
import './auto-imports'
export { handler }
summerStart({
async before(config) {
// init code before startup
},
async after(config) {
// post job after startup
}
})