Skip to content

Commit db6a9bb

Browse files
committed
fix: add debug logs
1 parent 8b438ba commit db6a9bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adminforth/modules/codeInjector.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ class CodeInjector implements ICodeInjector {
10371037

10381038
const buildHash = await this.tryReadFile(path.join(serveDir, '.adminforth_build_hash'));
10391039
const messagesHash = await this.tryReadFile(path.join(serveDir, '.adminforth_messages_hash'));
1040-
1040+
console.log({buildHash, sourcesHash});
10411041
const skipBuild = buildHash === sourcesHash;
10421042
const skipExtract = messagesHash === sourcesHash;
10431043

@@ -1072,6 +1072,7 @@ class CodeInjector implements ICodeInjector {
10721072

10731073
if (!hotReload) {
10741074
if (!skipBuild) {
1075+
console.log(`🪲 Build cache miss, building SPA...`);
10751076
let oldHashForFiles = null;
10761077
try {
10771078
oldHashForFiles = await fs.promises.readFile(path.join(this.spaTmpPath(), 'hashes.json'), 'utf-8');

0 commit comments

Comments
 (0)