app.use('*', async (ctx, next) => {
const supabase = createClient(ctx.env.SUPABASE_URL, ctx.env.SUPABASE_SERVICE_ROLE_KEY, {
auth: { autoRefreshToken: false, persistSession: false }
})
ctx.set('supabase', supabase)
await next()
})
app.use('*', async (ctx, next) => {
const supabase = createClient(ctx.env.SUPABASE_URL, ctx.env.SUPABASE_SERVICE_ROLE_KEY, {
auth: { autoRefreshToken: false, persistSession: false }
})
ctx.set('supabase', supabase)
await next()
})