The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: improve React quickstart with error handling and fix Docker capitalization (#45320)
Akash Santra34c5a9aa7a1d
diff --git a/apps/docs/content/guides/getting-started/quickstarts/reactjs.mdx b/apps/docs/content/guides/getting-started/quickstarts/reactjs.mdxindex a4dc3776d47..66d9743c162 100644--- a/apps/docs/content/guides/getting-started/quickstarts/reactjs.mdx+++ b/apps/docs/content/guides/getting-started/quickstarts/reactjs.mdx@@ -102,7 +102,13 @@ hideToc: true}, []);async function getInstruments() {- const { data } = await supabase.from("instruments").select();+ const { data, error } = await supabase.from("instruments").select();++ if (error) {+ console.error(error);+ return;+ }+setInstruments(data);}diff --git a/apps/docs/content/guides/local-development.mdx b/apps/docs/content/guides/local-development.mdxindex 872f486567e..6b9490c59cf 100644--- a/apps/docs/content/guides/local-development.mdx+++ b/apps/docs/content/guides/local-development.mdx@@ -116,7 +116,7 @@ As a prerequisite, you must install a container runtime compatible with Docker A<Admonition type="caution">-If your local development machine is connected to an untrusted public network, you should create a separate docker network and bind to 127.0.0.1 before starting the local development stack. This restricts network access to only your localhost machine.+If your local development machine is connected to an untrusted public network, you should create a separate Docker network and bind to 127.0.0.1 before starting the local development stack. This restricts network access to only your localhost machine.```shdocker network create -o 'com.docker.network.bridge.host_binding_ipv4=127.0.0.1' local-network