flecks/packages/server/build/flecks.hooks.js

20 lines
353 B
JavaScript
Raw Normal View History

export const hooks = {
2024-01-23 09:06:00 -06:00
/**
* Pass information to the runtime.
2024-01-29 08:15:22 -06:00
* @invoke Async
2024-01-23 09:06:00 -06:00
*/
'@flecks/server.runtime': async () => ({
something: '...',
}),
/**
* Define sequential actions to run when the server comes up.
2024-01-29 08:15:22 -06:00
* @invoke SequentialAsync
*/
'@flecks/server.up': async () => {
await youCanDoAsyncThingsHere();
2022-03-07 00:21:16 -06:00
},
2024-01-23 09:06:00 -06:00
2022-03-07 00:21:16 -06:00
};