flecks/packages/server/build/flecks.hooks.js
2024-01-29 08:15:22 -06:00

20 lines
353 B
JavaScript

export const hooks = {
/**
* Pass information to the runtime.
* @invoke Async
*/
'@flecks/server.runtime': async () => ({
something: '...',
}),
/**
* Define sequential actions to run when the server comes up.
* @invoke SequentialAsync
*/
'@flecks/server.up': async () => {
await youCanDoAsyncThingsHere();
},
};