Spaces:
Runtime error
Runtime error
Fix backend URL to point to production backend Space
Browse files- gateway.ts +2 -2
gateway.ts
CHANGED
|
@@ -9,9 +9,9 @@ import rateLimit from 'express-rate-limit';
|
|
| 9 |
dotenv.config();
|
| 10 |
|
| 11 |
const app = express();
|
| 12 |
-
const PORT = process.env.PORT ||
|
| 13 |
const JWT_SECRET = process.env.JWT_SECRET || 'your-secret-key-change-this';
|
| 14 |
-
const BACKEND_URL = process.env.BACKEND_URL || '
|
| 15 |
|
| 16 |
// In production, store users in a database
|
| 17 |
// For demo purposes, using in-memory storage with hashed passwords
|
|
|
|
| 9 |
dotenv.config();
|
| 10 |
|
| 11 |
const app = express();
|
| 12 |
+
const PORT = process.env.PORT || 7860;
|
| 13 |
const JWT_SECRET = process.env.JWT_SECRET || 'your-secret-key-change-this';
|
| 14 |
+
const BACKEND_URL = process.env.BACKEND_URL || 'https://deepthoughtai-evo-backend.hf.space';
|
| 15 |
|
| 16 |
// In production, store users in a database
|
| 17 |
// For demo purposes, using in-memory storage with hashed passwords
|