The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fixes hardcoded env vars
Paul Copplestone86e36f715ee5
diff --git a/examples/todo-next-js/lib/constants.js b/examples/todo-next-js/lib/constants.jsindex e58bdd67964..e8f4440af4e 100644--- a/examples/todo-next-js/lib/constants.js+++ b/examples/todo-next-js/lib/constants.js@@ -1,3 +1,2 @@-export const NEXT_PUBLIC_SUPABASE_URL = 'https://mgfqocwjajyyqqrztfjq.supabase.co'-export const NEXT_PUBLIC_SUPABASE_KEY =- 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYwMjIxNDg1OCwiZXhwIjoxOTE3NzkwODU4fQ.FdsD859xg820DVKIfdvI8PL0MdonqPKT0omisTOWCF8'\ No newline at end of file+export const NEXT_PUBLIC_SUPABASE_URL = process.env.NEXT_PUBLIC_SUPABASE_URL+export const NEXT_PUBLIC_SUPABASE_KEY = process.env.NEXT_PUBLIC_SUPABASE_KEY\ No newline at end of file