mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
### Fixes #8371 These changes are needed to automatically switch between local and production marketplace URLs, ensuring the app connects to the correct environment (dev or prod) without manual intervention. ### Changes 🏗️ 1. Swaps marketplace URL based on APP_ENV (dev or prod). 2. Ensures correct URL is used for local or production environments. Co-authored-by: Nicholas Tindle <nicholas.tindle@agpt.co> Co-authored-by: Aarushi <50577581+aarushik93@users.noreply.github.com>
20 lines
1.0 KiB
Plaintext
20 lines
1.0 KiB
Plaintext
NEXT_PUBLIC_AUTH_CALLBACK_URL=http://localhost:8006/auth/callback
|
|
NEXT_PUBLIC_AGPT_SERVER_URL=http://localhost:8006/api
|
|
NEXT_PUBLIC_AGPT_WS_SERVER_URL=ws://localhost:8001/ws
|
|
NEXT_PUBLIC_AGPT_MARKETPLACE_URL=http://localhost:8015/api/v1/market
|
|
NEXT_PUBLIC_APP_ENV=dev
|
|
|
|
## Supabase credentials
|
|
|
|
NEXT_PUBLIC_SUPABASE_URL=http://localhost:8000
|
|
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UtZGVtbyIsCiAgICAiaWF0IjogMTY0MTc2OTIwMCwKICAgICJleHAiOiAxNzk5NTM1NjAwCn0.dc_X5iR_VP_qT0zsiyj_I_OZ2T9FtRU2BBNWN8Bu4GE
|
|
|
|
## OAuth Callback URL
|
|
## This should be {domain}/auth/callback
|
|
## Only used if you're using Supabase and OAuth
|
|
AUTH_CALLBACK_URL=http://localhost:3000/auth/callback
|
|
GA_MEASUREMENT_ID=G-FH2XK2W4GN
|
|
|
|
# When running locally, set NEXT_PUBLIC_BEHAVE_AS=CLOUD to use the a locally hosted marketplace (as is typical in development, and the cloud deployment), otherwise set it to LOCAL to have the marketplace open in a new tab
|
|
NEXT_PUBLIC_BEHAVE_AS=LOCAL
|