The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
import { createClient } from '@supabase/supabase-js'
export default {
async fetch(request, { SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY }) {
const supabase = createClient(SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY)
const { data } = await supabase.from('articles').select('*')
return new Response(JSON.stringify(data), {
headers: {
'Content-Type': 'application/json',
},
})
},
}