From 2835ac50a6149c011b8f39ae82e478d9ad73abf7 Mon Sep 17 00:00:00 2001 From: sharath <29162020+tnfssc@users.noreply.github.com> Date: Sun, 25 May 2025 09:33:22 +0000 Subject: [PATCH 1/2] chore(config): add mise.toml for tool version specifications --- mise.toml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 mise.toml diff --git a/mise.toml b/mise.toml new file mode 100644 index 00000000..32952db2 --- /dev/null +++ b/mise.toml @@ -0,0 +1,4 @@ +# https://mise.jdx.dev/ +[tools] +node = "20" +python = "3.11.10" From 39cd63ee67dc02cc7396bd11fd30cdc6d72fc702 Mon Sep 17 00:00:00 2001 From: sharath <29162020+tnfssc@users.noreply.github.com> Date: Sun, 25 May 2025 09:42:31 +0000 Subject: [PATCH 2/2] fix(api): update allowed origins for CORS configuration in staging environment --- backend/api.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/backend/api.py b/backend/api.py index 48b1b922..4fb4070a 100644 --- a/backend/api.py +++ b/backend/api.py @@ -105,15 +105,12 @@ async def log_requests_middleware(request: Request, call_next): raise # Define allowed origins based on environment -allowed_origins = ["https://www.suna.so", "https://suna.so", "https://staging.suna.so", "http://localhost:3000"] +allowed_origins = ["https://www.suna.so", "https://suna.so", "http://localhost:3000"] # Add staging-specific origins if config.ENV_MODE == EnvMode.STAGING: - allowed_origins.append("http://localhost:3000") - -# Add local-specific origins -if config.ENV_MODE == EnvMode.LOCAL: - allowed_origins.append("http://localhost:3000") + allowed_origins.append("https://suna-*-prjcts.vercel.app") + allowed_origins.append("https://staging.suna.so") app.add_middleware( CORSMiddleware,