The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore(studio): drop anon key wording from connect snippet placeholders (#51793)
Lukas Klingsbo8963a05479fb
diff --git a/apps/studio/components/interfaces/ConnectSheet/content/androidkotlin/supabasekt/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/androidkotlin/supabasekt/content.tsxindex 455506fce0f..49e7962f3b8 100644--- a/apps/studio/components/interfaces/ConnectSheet/content/androidkotlin/supabasekt/content.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/content/androidkotlin/supabasekt/content.tsx@@ -10,7 +10,7 @@ const ContentFile = ({ projectKeys }: StepContentProps) => {code: `val supabase = createSupabaseClient(supabaseUrl = "${projectKeys.apiUrl ?? 'your-project-url'}",- supabaseKey = "${projectKeys.publishableKey ?? '<prefer publishable key instead of anon key for mobile apps>'}"+ supabaseKey = "${projectKeys.publishableKey ?? 'your-publishable-key'}") {install(Postgrest)}diff --git a/apps/studio/components/interfaces/ConnectSheet/content/astro/supabasejs/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/astro/supabasejs/content.tsxindex f30bcf0cdd6..012fe36c504 100644--- a/apps/studio/components/interfaces/ConnectSheet/content/astro/supabasejs/content.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/content/astro/supabasejs/content.tsx@@ -9,7 +9,7 @@ const ContentFile = ({ projectKeys }: StepContentProps) => {language: 'bash',code: `SUPABASE_URL=${projectKeys.apiUrl ?? 'your-project-url'}-SUPABASE_KEY=${projectKeys.publishableKey ?? projectKeys.anonKey ?? 'your-anon-key'}+SUPABASE_KEY=${projectKeys.publishableKey ?? projectKeys.anonKey ?? 'your-publishable-key'}`,},{diff --git a/apps/studio/components/interfaces/ConnectSheet/content/dotnet/aspnetcore/supabasedotnet/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/dotnet/aspnetcore/supabasedotnet/content.tsxindex d29cbe771b9..87cb9c383cb 100644--- a/apps/studio/components/interfaces/ConnectSheet/content/dotnet/aspnetcore/supabasedotnet/content.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/content/dotnet/aspnetcore/supabasedotnet/content.tsx@@ -4,7 +4,7 @@ import type { StepContentProps } from '@/components/interfaces/ConnectSheet/Connconst ContentFile = ({ projectKeys }: StepContentProps) => {const supabaseUrl = projectKeys.apiUrl ?? 'your-project-url'- const supabaseKey = projectKeys.publishableKey ?? projectKeys.anonKey ?? 'your-anon-key'+ const supabaseKey = projectKeys.publishableKey ?? projectKeys.anonKey ?? 'your-publishable-key'const files = [{diff --git a/apps/studio/components/interfaces/ConnectSheet/content/dotnet/console/supabasedotnet/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/dotnet/console/supabasedotnet/content.tsxindex d5fe68ac9d0..70a998c9cdf 100644--- a/apps/studio/components/interfaces/ConnectSheet/content/dotnet/console/supabasedotnet/content.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/content/dotnet/console/supabasedotnet/content.tsx@@ -4,7 +4,7 @@ import type { StepContentProps } from '@/components/interfaces/ConnectSheet/Connconst ContentFile = ({ projectKeys }: StepContentProps) => {const supabaseUrl = projectKeys.apiUrl ?? 'your-project-url'- const supabaseKey = projectKeys.publishableKey ?? projectKeys.anonKey ?? 'your-anon-key'+ const supabaseKey = projectKeys.publishableKey ?? projectKeys.anonKey ?? 'your-publishable-key'const files = [{diff --git a/apps/studio/components/interfaces/ConnectSheet/content/dotnet/unity/supabasedotnet/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/dotnet/unity/supabasedotnet/content.tsxindex d15423e817b..225cb6caaa4 100644--- a/apps/studio/components/interfaces/ConnectSheet/content/dotnet/unity/supabasedotnet/content.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/content/dotnet/unity/supabasedotnet/content.tsx@@ -4,7 +4,7 @@ import type { StepContentProps } from '@/components/interfaces/ConnectSheet/Connconst ContentFile = ({ projectKeys }: StepContentProps) => {const supabaseUrl = projectKeys.apiUrl ?? 'your-project-url'- const supabaseKey = projectKeys.publishableKey ?? projectKeys.anonKey ?? 'your-anon-key'+ const supabaseKey = projectKeys.publishableKey ?? projectKeys.anonKey ?? 'your-publishable-key'const files = [{diff --git a/apps/studio/components/interfaces/ConnectSheet/content/exporeactnative/supabasejs/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/exporeactnative/supabasejs/content.tsxindex 950e4759453..82395f79ebd 100644--- a/apps/studio/components/interfaces/ConnectSheet/content/exporeactnative/supabasejs/content.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/content/exporeactnative/supabasejs/content.tsx@@ -9,7 +9,7 @@ const ContentFile = ({ projectKeys }: StepContentProps) => {language: 'bash',code: `EXPO_PUBLIC_SUPABASE_URL=${projectKeys.apiUrl ?? 'your-project-url'}-EXPO_PUBLIC_SUPABASE_KEY=${projectKeys.publishableKey ?? '<prefer publishable key instead of anon key for mobile and desktop apps>'}+EXPO_PUBLIC_SUPABASE_KEY=${projectKeys.publishableKey ?? 'your-publishable-key'}`,},{diff --git a/apps/studio/components/interfaces/ConnectSheet/content/flask/supabasepy/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/flask/supabasepy/content.tsxindex 644ceb769e4..0f8691f8c86 100644--- a/apps/studio/components/interfaces/ConnectSheet/content/flask/supabasepy/content.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/content/flask/supabasepy/content.tsx@@ -9,7 +9,7 @@ const ContentFile = ({ projectKeys }: StepContentProps) => {language: 'bash',code: `SUPABASE_URL=${projectKeys.apiUrl ?? 'your-project-url'}-SUPABASE_KEY=${projectKeys.publishableKey ?? projectKeys.anonKey ?? 'your-anon-key'}+SUPABASE_KEY=${projectKeys.publishableKey ?? projectKeys.anonKey ?? 'your-publishable-key'}`,},{diff --git a/apps/studio/components/interfaces/ConnectSheet/content/ionicangular/supabasejs/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/ionicangular/supabasejs/content.tsxindex d1cd404f752..6baabd66d92 100644--- a/apps/studio/components/interfaces/ConnectSheet/content/ionicangular/supabasejs/content.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/content/ionicangular/supabasejs/content.tsx@@ -10,7 +10,7 @@ const ContentFile = ({ projectKeys }: StepContentProps) => {code: `export const environment = {supabaseUrl: '${projectKeys.apiUrl ?? 'your-project-url'}',- supabaseKey: '${projectKeys.publishableKey ?? '<prefer publishable key instead of anon key for mobile apps>'}',+ supabaseKey: '${projectKeys.publishableKey ?? 'your-publishable-key'}',};`,},diff --git a/apps/studio/components/interfaces/ConnectSheet/content/ionicreact/supabasejs/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/ionicreact/supabasejs/content.tsxindex be4f077cd5f..dbd26094677 100644--- a/apps/studio/components/interfaces/ConnectSheet/content/ionicreact/supabasejs/content.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/content/ionicreact/supabasejs/content.tsx@@ -9,7 +9,7 @@ const ContentFile = ({ projectKeys }: StepContentProps) => {language: 'bash',code: `REACT_APP_SUPABASE_URL=${projectKeys.apiUrl ?? 'your-project-url'}-REACT_APP_SUPABASE_KEY=${projectKeys.publishableKey ?? '<prefer publishable key instead of anon key for mobile or desktop apps>'}+REACT_APP_SUPABASE_KEY=${projectKeys.publishableKey ?? 'your-publishable-key'}`,},{@@ -19,9 +19,9 @@ REACT_APP_SUPABASE_KEY=${projectKeys.publishableKey ?? '<prefer publishable keyimport { createClient } from '@supabase/supabase-js'const supabaseUrl = process.env.REACT_APP_SUPABASE_URL-const supabaseAnonKey = process.env.REACT_APP_SUPABASE_KEY+const supabaseKey = process.env.REACT_APP_SUPABASE_KEY-export const supabase = createClient(supabaseUrl, supabaseAnonKey)+export const supabase = createClient(supabaseUrl, supabaseKey)`,},{diff --git a/apps/studio/components/interfaces/ConnectSheet/content/nuxt/supabasejs/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/nuxt/supabasejs/content.tsxindex 08357299a13..0cbaccf3db1 100644--- a/apps/studio/components/interfaces/ConnectSheet/content/nuxt/supabasejs/content.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/content/nuxt/supabasejs/content.tsx@@ -9,7 +9,7 @@ const ContentFile = ({ projectKeys }: StepContentProps) => {language: 'bash',code: [`SUPABASE_URL=${projectKeys.apiUrl ?? 'your-project-url'}`,- `SUPABASE_KEY=${projectKeys.publishableKey ?? projectKeys.anonKey ?? 'your-anon-key'}`,+ `SUPABASE_KEY=${projectKeys.publishableKey ?? projectKeys.anonKey ?? 'your-publishable-key'}`,'',].join('\n'),},diff --git a/apps/studio/components/interfaces/ConnectSheet/content/refine/supabasejs/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/refine/supabasejs/content.tsxindex 97b65d09327..487fea6ed57 100644--- a/apps/studio/components/interfaces/ConnectSheet/content/refine/supabasejs/content.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/content/refine/supabasejs/content.tsx@@ -9,7 +9,7 @@ const ContentFile = ({ projectKeys }: StepContentProps) => {language: 'bash',code: [`SUPABASE_URL=${projectKeys.apiUrl ?? 'your-project-url'}`,- `SUPABASE_KEY=${projectKeys?.publishableKey ?? projectKeys?.anonKey ?? 'your-anon-key'}`,+ `SUPABASE_KEY=${projectKeys?.publishableKey ?? projectKeys?.anonKey ?? 'your-publishable-key'}`,'',].join('\n'),},diff --git a/apps/studio/components/interfaces/ConnectSheet/content/swift/supabaseswift/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/swift/supabaseswift/content.tsxindex d6054f6013e..cefc4781927 100644--- a/apps/studio/components/interfaces/ConnectSheet/content/swift/supabaseswift/content.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/content/swift/supabaseswift/content.tsx@@ -13,7 +13,7 @@ import Supabaselet supabase = SupabaseClient(supabaseURL: URL(string: "${projectKeys.apiUrl ?? 'your-project-url'}")!,- supabaseKey: "${projectKeys.publishableKey ?? '<prefer publishable key for native apps instead of anon key>'}"+ supabaseKey: "${projectKeys.publishableKey ?? 'your-publishable-key'}")`,},diff --git a/apps/studio/components/interfaces/ConnectSheet/content/tanstack/supabasejs/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/tanstack/supabasejs/content.tsxindex cfe42dffbc5..bd5e5685dcd 100644--- a/apps/studio/components/interfaces/ConnectSheet/content/tanstack/supabasejs/content.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/content/tanstack/supabasejs/content.tsx@@ -9,7 +9,7 @@ const ContentFile = ({ projectKeys }: StepContentProps) => {language: 'bash',code: `VITE_SUPABASE_URL=${projectKeys.apiUrl ?? 'your-project-url'}-VITE_SUPABASE_KEY=${projectKeys.publishableKey ?? projectKeys.anonKey ?? 'your-anon-key'}+VITE_SUPABASE_KEY=${projectKeys.publishableKey ?? projectKeys.anonKey ?? 'your-publishable-key'}`,},{