Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Clarify env vars names
Tomas Valenta704351684310
diff --git a/.env.example b/.env.exampleindex c28e4be6f..4b3713135 100644--- a/.env.example+++ b/.env.example@@ -4,10 +4,15 @@OPENAI_API_KEY=# Supabase-SUPABASE_POSTGRES_POOL_URL=postgresql://postgres:postgres@localhost:54322/postgres+# Postgres connection string for the Supabase DB used by Prisma.+# The preconfigured value with localhost is for the development with local Supabase.+# Add `?pgbouncer=true&connection_limit=1` to the connection string if you are deploying to production.+SUPABASE_POSTGRES_URL=postgresql://postgres:postgres@localhost:54322/postgres# Service role key you can get the local Supabase in "service_role key: eyJh......"-SUPABASE_KEY=+SUPABASE_SERVICE_ROLE_KEY=+# URL for the Supabase DB.+# The preconfigured value with localhost is for the development with local Supabase.NEXT_PUBLIC_SUPABASE_URL=http://localhost:54321# Anonymous key you can get from the local Supabase in - "anon key: eyJh......"NEXT_PUBLIC_SUPABASE_ANON_KEY=diff --git a/README.md b/README.mdindex a5e203f65..226e81813 100644--- a/README.md+++ b/README.md@@ -57,7 +57,7 @@ cp .env.example .env```and the following variables:- `OPENAI_API_KEY` - your [OpenAI key](https://platform.openai.com/account/api-keys)-- `SUPABASE_KEY` - Supabase service role key you got in the previous step as `service_role key: eyJh......`+- `SUPABASE_SERVICE_ROLE_KEY` - Supabase service role key you got in the previous step as `service_role key: eyJh......`- `NEXT_PUBLIC_SUPABASE_ANON_KEY` - Supabase anonymous key you got in the previous step as `anon key: eyJh......`### 4. Start the IDEdiff --git a/api-service/app.py b/api-service/app.pyindex c520252c5..a453b9fe4 100644--- a/api-service/app.py+++ b/api-service/app.py@@ -16,10 +16,10 @@ from codegen.tools.human.tools import create_human_toolsload_dotenv()url = os.environ.get("NEXT_PUBLIC_SUPABASE_URL")-key = os.environ.get("SUPABASE_KEY")+key = os.environ.get("SUPABASE_SERVICE_ROLE_KEY")if not url or not key:- raise NotFoundException("Suapbase credentials not found")+ raise NotFoundException("Supabase credentials not found")db = Database(url, key)diff --git a/api-service/playground/src/data/logOutput.ts b/api-service/playground/src/data/logOutput.tsindex a68994cbd..426e6b5ff 100644--- a/api-service/playground/src/data/logOutput.ts+++ b/api-service/playground/src/data/logOutput.ts@@ -9,7 +9,7 @@ dotenv.config({path: '../../.env',})-const client = createClient<Database>(process.env.NEXT_PUBLIC_SUPABASE_URL!, process.env.SUPABASE_KEY!)+const client = createClient<Database>(process.env.NEXT_PUBLIC_SUPABASE_URL!, process.env.SUPABASE_SERVICE_ROLE_KEY!)export const projectsTable = 'projects'export const deploymentsTable = 'deployments'diff --git a/prisma/schema.prisma b/prisma/schema.prismaindex 2ee834961..3a9225245 100644--- a/prisma/schema.prisma+++ b/prisma/schema.prisma@@ -5,7 +5,7 @@ generator js {datasource db {provider = "postgresql"- url = env("SUPABASE_POSTGRES_POOL_URL")+ url = env("SUPABASE_POSTGRES_URL")schemas = ["auth", "public"]}