The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Apply review changes
Filipe Cabaçoe3b930b50183
diff --git a/apps/docs/docs/ref/self-hosting-analytics/introduction.mdx b/apps/docs/docs/ref/self-hosting-analytics/introduction.mdxindex d5e21166eb1..1158463ba48 100644--- a/apps/docs/docs/ref/self-hosting-analytics/introduction.mdx+++ b/apps/docs/docs/ref/self-hosting-analytics/introduction.mdx@@ -103,6 +103,8 @@ docker compose -f docker-compose.yml up> ⚠️ WARNING: Please be aware of the heavy consumption of analytics. For heavy usage you might want to consider the usage of a different database for analytics only by updating the `POSTGRES_BACKEND_URL` in the `analytics` service on the `docker-compose.yml` file.+Also be aware that you won't be able to use [Log Explorer](https://supabase.com/docs/guides/platform/logs#logs-explorer) when using the Postgres Backend as some of the querying features are still not supported by our translation layer.+#### Using the Big Query BackendUsing the example [self-hosting stack based on docker-compose](https://github.com/supabase/supabase/tree/master/docker), you include the logging related services using the following command@@ -113,7 +115,6 @@ Using the example [self-hosting stack based on docker-compose](https://github.co- `GOOGLE_PROJECT_NUMBER`2. Place your Service Account key in your present working directory with the filename `gcloud.json`.-3. On `docker-compose.yml`, uncomment the block section below the commentary `# Uncomment to use Big Query backend for analytics`4. On `docker-compose.yml`, comment the block section below the commentary `# Comment variables to use Big Query backend for analytics`diff --git a/docker/docker-compose.yml b/docker/docker-compose.ymlindex 4cf8e301d4f..d6a3eefaf20 100644--- a/docker/docker-compose.yml+++ b/docker/docker-compose.yml@@ -49,7 +49,7 @@ services:# Comment to use Big Query backend for analyticsNEXT_ANALYTICS_BACKEND_PROVIDER: postgres# Uncomment to use Big Query backend for analytics- # NEXT_ANALYTICS_BACKEND_PROVIDER: big_query+ # NEXT_ANALYTICS_BACKEND_PROVIDER: bigquerykong: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 8ab24a44941..6322ef0c48a 100644--- a/studio/pages/api/projects/[ref]/analytics/endpoints/[name].ts+++ b/studio/pages/api/projects/[ref]/analytics/endpoints/[name].ts@@ -15,10 +15,10 @@ 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') {+ if (process.env.NEXT_ANALYTICS_BACKEND_PROVIDER !== 'bigquery') {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' } })+ .json({ error: { message: 'Log Explorer is only supported by the [analytics] Big Query backend. Please refer to https://supabase.com/docs/reference/self-hosting-analytics/introduction for more information' } })}const missingEnvVars = [process.env.LOGFLARE_API_KEY ? null : 'LOGFLARE_API_KEY',