feat(prod): deploy web dashboard, migrate mongodb configuration, resolve server components render error and fix logo static asset paths
This commit is contained in:
1 parent
4882108068
commit
b2ea883601
119 files changed
+7123
-2011
No files matched your search
@@ -0,0 +1,27 @@
|
||||
// test/find_mongoose_chunk.js
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const filePath = path.join(__dirname, '../.next/server/chunks/ssr/[root-of-the-server]__081-pwf._.js');
|
||||
|
||||
try {
|
||||
const content = fs.readFileSync(filePath, 'utf8');
|
||||
const lines = content.split('\n');
|
||||
console.log(`Total lines: ${lines.length}`);
|
||||
|
||||
let matchCount = 0;
|
||||
for (let i = 0; i < lines.length; i++) {
|
||||
if (lines[i].includes('mongoose-8b99e611e7552af3')) {
|
||||
console.log(`Line ${i + 1}:`);
|
||||
// Print a slice of the line around the match
|
||||
const index = lines[i].indexOf('mongoose-8b99e611e7552af3');
|
||||
const start = Math.max(0, index - 100);
|
||||
const end = Math.min(lines[i].length, index + 100);
|
||||
console.log(lines[i].slice(start, end));
|
||||
matchCount++;
|
||||
if (matchCount > 5) break;
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.error("Error reading file:", err.message);
|
||||
}
|
||||
Reference in new issue
Block a user