feat(prod): deploy web dashboard, migrate mongodb configuration, resolve server components render error and fix logo static asset paths

This commit is contained in:
Rafif-Riqullah-Siregar committed 2026-07-15 00:27:55 +07:00
1 parent 4882108068
commit b2ea883601
119 files changed
+7123 -2011

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
// test/test_native_mongo.js
const { MongoClient } = require('mongodb');
async function test() {
const url = 'mongodb://127.0.0.1:27017';
const client = new MongoClient(url);
try {
console.log("Connecting natively to MongoDB...");
await client.connect();
console.log("Connected successfully!");
const db = client.db('backone_dpi');
const collection = db.collection('devicestats');
console.log("Querying devicestats natively...");
const start = Date.now();
const count = await collection.countDocuments({});
console.log(`Successfully queried! Total docs in devicestats: ${count}`);
console.log(`Query took ${Date.now() - start} ms`);
} catch (err) {
console.error("Native test failed:", err);
} finally {
await client.close();
console.log("Disconnected.");
}
}
test();