wasp/waspc/examples/todoApp/ext/serverSetup.js

12 lines
282 B
JavaScript

let someResource = undefined
export const getSomeResource = () => someResource
const setup = async () => {
await new Promise(resolve => setTimeout(resolve, 2000))
someResource = 'This resource is now set up.'
console.log('Custom server setup done!')
}
export default setup