minor fixes in build and console

This commit is contained in:
dswbx
2025-02-19 17:41:48 +01:00
parent b436758fe6
commit a29e824ecc
4 changed files with 10 additions and 19 deletions

View File

@@ -164,17 +164,13 @@ export class AdminController extends Controller {
};
if (isProd) {
try {
// @ts-ignore
const manifest = await import("bknd/dist/manifest.json", {
assert: { type: "json" }
}).then((m) => m.default);
// @todo: load all marked as entry (incl. css)
assets.js = manifest["src/ui/main.tsx"].file;
assets.css = manifest["src/ui/main.tsx"].css[0] as any;
} catch (e) {
console.error("Error loading manifest", e);
}
// @ts-ignore
const manifest = await import("bknd/dist/manifest.json", {
assert: { type: "json" }
});
// @todo: load all marked as entry (incl. css)
assets.js = manifest.default["src/ui/main.tsx"].file;
assets.css = manifest.default["src/ui/main.tsx"].css[0] as any;
}
const theme = configs.server.admin.color_scheme ?? "light";