Skip to content

Commit 1e78cca

Browse files
committed
fix: app context dist directory
1 parent 251d8df commit 1e78cca

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

server/cli.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ const getStrapiApp = async () => {
2727
if (!isTSProject || !alreadyCompiled) {
2828
appContext = await compileStrapi();
2929
} else {
30-
appContext = { appDir, outDir };
30+
const distDir = isTSProject ? outDir : appDir;
31+
appContext = { appDir, distDir };
3132
}
33+
3234
const app = await createStrapi(appContext).load();
3335
return app;
3436
};

0 commit comments

Comments
 (0)