From b3cba6af00de37c63a5e3bcc51d543348975f9ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Flor=C3=AAncio?= Date: Sun, 8 Feb 2026 18:46:17 +0000 Subject: [PATCH] fix: make start without public folder --- apps/cli/src/start.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/apps/cli/src/start.ts b/apps/cli/src/start.ts index 35ab16f4e7..98f914b870 100644 --- a/apps/cli/src/start.ts +++ b/apps/cli/src/start.ts @@ -86,6 +86,19 @@ export async function runStart({ } } + // Link public directory (fonts, images, etc.) into standalone output + const webPublicDir = path.join(repoRoot, "apps", "web", "public"); + const standalonePublicDir = path.join(webStandaloneDir, "public"); + if (fs.existsSync(webPublicDir) && !fs.existsSync(standalonePublicDir)) { + try { + fs.symlinkSync(webPublicDir, standalonePublicDir, "junction"); + } catch (err) { + console.warn( + `[kandev] failed to link public assets: ${err instanceof Error ? err.message : String(err)}`, + ); + } + } + // Production mode: use warn log level for clean output unless verbose/debug const showOutput = verbose || debug; const dbPath = path.join(DATA_DIR, "kandev.db");