The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
import { useParams } from 'common'
import { useRouter } from 'next/router'
import { useEffect } from 'react'
import { IS_PLATFORM } from '@/lib/constants'
import type { NextPageWithLayout } from '@/types'
const ApiSettings: NextPageWithLayout = () => {
const router = useRouter()
const { ref } = useParams()
useEffect(() => {
if (!ref) return
if (IS_PLATFORM) {
router.replace(`/project/${ref}/integrations/data_api/overview`)
} else {
router.replace(`/project/${ref}/settings/general`)
}
}, [ref, router])
return null
}
export default ApiSettings