The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
When user isn't using Big Query adapter, we warn the user that they cannot use Log Explorer
Filipe Cabacoceebf1b63de9
diff --git a/docker/docker-compose.yml b/docker/docker-compose.ymlindex b4a3a789897..4cf8e301d4f 100644--- a/docker/docker-compose.yml+++ b/docker/docker-compose.yml@@ -46,6 +46,10 @@ services:LOGFLARE_API_KEY: ${LOGFLARE_API_KEY}LOGFLARE_URL: http://analytics:4000NEXT_PUBLIC_ENABLE_LOGS: true+ # Comment to use Big Query backend for analytics+ NEXT_ANALYTICS_BACKEND_PROVIDER: postgres+ # Uncomment to use Big Query backend for analytics+ # NEXT_ANALYTICS_BACKEND_PROVIDER: big_querykong:container_name: supabase-kongdiff --git a/studio/pages/api/projects/[ref]/analytics/endpoints/[name].ts b/studio/pages/api/projects/[ref]/analytics/endpoints/[name].tsindex b9ab5791bea..8ab24a44941 100644--- a/studio/pages/api/projects/[ref]/analytics/endpoints/[name].ts+++ b/studio/pages/api/projects/[ref]/analytics/endpoints/[name].ts@@ -15,6 +15,11 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {.status(400).json({ error: { message: '[analytics] is not enabled in supabase/config.toml' } })}+ if (process.env.NEXT_ANALYTICS_BACKEND_PROVIDER !== 'big_query') {+ return res+ .status(400)+ .json({ error: { message: 'Log Explorer is only supported by the [analytics] Big Query backend, please refer to the documentation to set it up' } })+ }const missingEnvVars = [process.env.LOGFLARE_API_KEY ? null : 'LOGFLARE_API_KEY',process.env.LOGFLARE_URL ? null : 'LOGFLARE_URL',