fix: app context dist directory

pull/187/head
gboutte 2025-06-26 21:45:17 +02:00
parent 251d8df336
commit 1e78cca1d3
1 changed files with 3 additions and 1 deletions

View File

@ -27,8 +27,10 @@ const getStrapiApp = async () => {
if (!isTSProject || !alreadyCompiled) { if (!isTSProject || !alreadyCompiled) {
appContext = await compileStrapi(); appContext = await compileStrapi();
} else { } else {
appContext = { appDir, outDir }; const distDir = isTSProject ? outDir : appDir;
appContext = { appDir, distDir };
} }
const app = await createStrapi(appContext).load(); const app = await createStrapi(appContext).load();
return app; return app;
}; };