N
Nuxt5mo ago
dmarr

Is it possible to support top level await in route handlers?

I have a route handler (/server/routes/foo.ts) and was hoping to have a top level await outside the event handler. Is that possible? The compiler says that it's not supported since we're targeting ES2019. I also see the caveat in the docs about setting the target in the tsconfig.json file. So maybe I'm asking something that isn't doable...
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server