From 1e78cca1d3c9a3b426fe62d601f3cce700745cfa Mon Sep 17 00:00:00 2001 From: gboutte Date: Thu, 26 Jun 2025 21:45:17 +0200 Subject: [PATCH] fix: app context dist directory --- server/cli.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/cli.js b/server/cli.js index 7e900cd..d062630 100644 --- a/server/cli.js +++ b/server/cli.js @@ -27,8 +27,10 @@ const getStrapiApp = async () => { if (!isTSProject || !alreadyCompiled) { appContext = await compileStrapi(); } else { - appContext = { appDir, outDir }; + const distDir = isTSProject ? outDir : appDir; + appContext = { appDir, distDir }; } + const app = await createStrapi(appContext).load(); return app; };