Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
const express = require('express');
|
| 3 |
const fs = require('fs');
|
| 4 |
const path = require('path');
|
|
@@ -12,12 +12,14 @@ app.use(express.json());
|
|
| 12 |
// CONFIG
|
| 13 |
// ============================================================
|
| 14 |
const PORT = process.env.PORT || 7860;
|
|
|
|
| 15 |
const SELLER_PRIV_KEY = process.env.SELLER_PRIVATE_KEY;
|
| 16 |
const PUBLIC_ENDPOINT = process.env.PUBLIC_ENDPOINT;
|
| 17 |
const GEMINI_API_KEY = process.env.GEMINI_API_KEY;
|
| 18 |
|
| 19 |
const sellerCore = new ClinchSeller({
|
| 20 |
-
privateKeyHex: SELLER_PRIV_KEY
|
|
|
|
| 21 |
});
|
| 22 |
sellerCore.on('log', msg => console.log(msg));
|
| 23 |
|
|
|
|
| 1 |
+
require('dotenv').config();
|
| 2 |
const express = require('express');
|
| 3 |
const fs = require('fs');
|
| 4 |
const path = require('path');
|
|
|
|
| 12 |
// CONFIG
|
| 13 |
// ============================================================
|
| 14 |
const PORT = process.env.PORT || 7860;
|
| 15 |
+
const REGISTRY_URL = process.env.REGISTRY_URL; // Restored local override
|
| 16 |
const SELLER_PRIV_KEY = process.env.SELLER_PRIVATE_KEY;
|
| 17 |
const PUBLIC_ENDPOINT = process.env.PUBLIC_ENDPOINT;
|
| 18 |
const GEMINI_API_KEY = process.env.GEMINI_API_KEY;
|
| 19 |
|
| 20 |
const sellerCore = new ClinchSeller({
|
| 21 |
+
privateKeyHex: SELLER_PRIV_KEY,
|
| 22 |
+
registryUrl: REGISTRY_URL
|
| 23 |
});
|
| 24 |
sellerCore.on('log', msg => console.log(msg));
|
| 25 |
|