diff --git a/playground/server/api/client.ts b/playground/server/api/client.ts index bdcfc967..7e5c9fbb 100644 --- a/playground/server/api/client.ts +++ b/playground/server/api/client.ts @@ -1,3 +1 @@ -export default () => { - return useSanity().config -} +export default defineEventHandler(() => useSanity().config) diff --git a/playground/server/api/groq.ts b/playground/server/api/groq.ts index d1cdf197..d02841df 100644 --- a/playground/server/api/groq.ts +++ b/playground/server/api/groq.ts @@ -1 +1 @@ -export default () => groq`hey there!` +export default defineEventHandler(() => groq`hey there!`)