Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(apps): include admin/ subdir in pre-build npm install

[._.]/ Adam Eivy34b196d8f791
diff --git a/server/routes/apps.js b/server/routes/apps.js
index d494652f9b..4a2bee28ec 100644
--- a/server/routes/apps.js
+++ b/server/routes/apps.js
@@ -411,8 +411,8 @@ router.post('/:id/build', loadApp, asyncHandler(async (req, res) => {
console.log(`🔨 Building ${app.name}: ${buildCommand}`);
- // Install dependencies before building (root, client, server subdirs)
- for (const sub of ['', 'client', 'server']) {
+ // Install dependencies before building (root + common subdirs)
+ for (const sub of ['', 'client', 'server', 'admin']) {
const subDir = sub ? join(app.repoPath, sub) : app.repoPath;
if (existsSync(join(subDir, 'package.json'))) {
const label = sub || 'root';
diff --git a/server/services/appUpdater.js b/server/services/appUpdater.js
index 4fe6bfb740..c76ba28b09 100644
--- a/server/services/appUpdater.js
+++ b/server/services/appUpdater.js
@@ -71,7 +71,7 @@ async function _doUpdate(app, emit) {
steps.push({ step: 'git-pull', success: true, message: pullMsg });
// Step 2: Install deps for each subdir that has package.json
- for (const sub of ['', 'client', 'server']) {
+ for (const sub of ['', 'client', 'server', 'admin']) {
const subDir = sub ? join(dir, sub) : dir;
if (existsSync(join(subDir, 'package.json'))) {
const label = sub || 'root';