Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix api url; Cleanup
Tomas Valenta947540c10c59
diff --git a/README.md b/README.mdindex 9d71fb375..ec37ea539 100644--- a/README.md+++ b/README.md@@ -43,12 +43,12 @@ You will need:- Docker- Node.js *16+*-### 1. Add env vars+### 1. Add env varCreate `.env` file by copying the [`.env.example`](.env.example)```cp .env.example .env```-and fill in the following variables:+and fill in the following variable:- `OPENAI_API_KEY` - your [OpenAI key](https://platform.openai.com/account/api-keys)### 2. Start the app@@ -57,7 +57,7 @@ yarn start```or```-npm run start+npm start```Then open the page on [http://localhost:3000](http://localhost:3000).diff --git a/components/AuthForm.tsx b/components/AuthForm.tsxindex b0d9c32ed..8984cd1b2 100644--- a/components/AuthForm.tsx+++ b/components/AuthForm.tsx@@ -72,7 +72,6 @@ function AuthForm({ authType }: Props) {useEffect(function autoSignIn() {if (process.env.NEXT_PUBLIC_SIGN_IN_EMAIL && process.env.NEXT_PUBLIC_SIGN_IN_PASSWORD) {- console.log(process.env.NEXT_PUBLIC_SIGN_IN_PASSWORD)authWithEmail(process.env.NEXT_PUBLIC_SIGN_IN_EMAIL, process.env.NEXT_PUBLIC_SIGN_IN_PASSWORD)}}, [authWithEmail])diff --git a/components/Editor/Sidebar/index.tsx b/components/Editor/Sidebar/index.tsxindex 1d94195a5..cea6df4ae 100644--- a/components/Editor/Sidebar/index.tsx+++ b/components/Editor/Sidebar/index.tsx@@ -24,8 +24,7 @@ export enum MenuSection {// Deploy = 'Deploy',}-const apiHost = process.env.API_URL- || process.env.NODE_ENV === 'development'+const apiHost = process.env.NODE_ENV === 'development'? 'http://localhost:49155': 'https://ai-api-service-7d2cl2hooq-uc.a.run.app'diff --git a/docker-compose.yml b/docker-compose.ymlindex 7fdd30dc5..20326b42b 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -10,8 +10,8 @@ services:- NEXT_PUBLIC_SUPABASE_URL=http://supabase_kong_workspace:8000- SUPABASE_SERVICE_ROLE_KEY=${SUPABASE_SERVICE_ROLE_KEY}- OPENAI_API_KEY=${OPENAI_API_KEY}- expose:- - 49155+ ports:+ - 49155:49155external_links:- supabase_kong_workspace- supabase_db_workspace@@ -25,13 +25,10 @@ services:external_links:- supabase_kong_workspace- supabase_db_workspace- depends_on:- - apienvironment:- NODE_ENV=development- - API_URL=http://api:49155- SUPABASE_URL=http://supabase_kong_workspace:8000- SUPABASE_POSTGRES_URL=postgresql://postgres:postgres@supabase_db_workspace:5432/postgres- NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL}diff --git a/package.json b/package.jsonindex 8be7c9859..e2f769279 100644--- a/package.json+++ b/package.json@@ -10,7 +10,7 @@"start:playground": "cd api-service/playground && yarn dev","install:api-service": "cd api-service && poetry install && cd playground && yarn","install:all": "yarn && yarn install:api-service",- "start": "yarn db:start && docker compose up --build",+ "start": "docker compose build && yarn db:start && docker compose up","stop": "docker compose down && yarn db:stop","lint": "next lint","lint:fix": "next lint --fix",