Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(studio): use publishableKey in the Flutter connect snippet (#51792)

Lukas Klingsbodfd1f5883816
diff --git a/apps/studio/components/interfaces/ConnectSheet/content/flutter/supabaseflutter/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/flutter/supabaseflutter/content.tsx
index 90a7b36f2c4..3903c9f2fb4 100644
--- a/apps/studio/components/interfaces/ConnectSheet/content/flutter/supabaseflutter/content.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/content/flutter/supabaseflutter/content.tsx
@@ -14,7 +14,7 @@ import 'package:supabase_flutter/supabase_flutter.dart';
Future<void> main() async {
await Supabase.initialize(
url: '${projectKeys.apiUrl ?? 'your-project-url'}',
- anonKey: '${projectKeys.publishableKey ?? '<prefer publishable key instead of anon key for mobile and desktop apps>'}',
+ publishableKey: '${projectKeys.publishableKey ?? 'your-publishable-key'}',
);
runApp(MyApp());
}