2022-08-10 10:09:02 -05:00
|
|
|
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: '...',
|
|
|
|
}),
|
|
|
|
|
2022-08-10 10:09:02 -05:00
|
|
|
/**
|
|
|
|
* Define sequential actions to run when the server comes up.
|
2024-01-29 08:15:22 -06:00
|
|
|
* @invoke SequentialAsync
|
2022-08-10 10:09:02 -05:00
|
|
|
*/
|
|
|
|
'@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
|
|
|
};
|