[Haik]: swapped prod to be a single endpoint instead of a range bc of google workspace shit

This commit is contained in:
haikdc
2026-03-30 15:14:26 -07:00
parent 7d9a2fb1a3
commit 9d0a9abd6e
4 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -66,9 +66,9 @@ These let users sign in with their Google account.
5. **Name**: `OpenSwarm` (or anything you want).
6. Under **Authorized redirect URIs**, click **+ Add URI** and add:
```
http://localhost:8324/api/auth/google/callback
http://localhost:8325/api/tools/oauth/callback
```
(Replace `8324` with your `BACKEND_PORT` if you changed it.)
(Replace `8325` with your `OPENSWARM_PORT` if you changed it.)
7. Click **Create**.
### Step 6 — Copy the values
+1 -2
View File
@@ -12,8 +12,7 @@ with open(_config_path) as _f:
_cfg = json.load(_f)
BACKEND_DEV_PORT: int = _cfg["backend"]["dev"]
BACKEND_PROD_PORT_START: int = _cfg["backend"]["prod"]["start"]
BACKEND_PROD_PORT_END: int = _cfg["backend"]["prod"]["end"]
BACKEND_PROD_PORT: int = _cfg["backend"]["prod"]
FRONTEND_DEV_PORT: int = _cfg["frontend"]["dev"]
NINE_ROUTER_DEV_PORT: int = _cfg["nineRouter"]["dev"]
NINE_ROUTER_PROD_PORT: int = _cfg["nineRouter"]["prod"]
+1 -1
View File
@@ -148,7 +148,7 @@ function waitForBackend(port, timeoutMs = 60000) {
}
async function startBackend() {
backendPort = await getPort({ port: getPort.makeRange(portsConfig.backend.prod.start, portsConfig.backend.prod.end) });
backendPort = await getPort({ port: portsConfig.backend.prod });
const pythonPath = getPythonPath();
const backendDir = getResourcePath('backend');
+2 -2
View File
@@ -1,7 +1,7 @@
{
"backend": {
"dev": 8325,
"prod": { "start": 8326, "end": 8424 }
"dev": 8324,
"prod": 8325
},
"frontend": {
"dev": 3000