We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 251d8df commit 1e78ccaCopy full SHA for 1e78cca
1 file changed
server/cli.js
@@ -27,8 +27,10 @@ const getStrapiApp = async () => {
27
if (!isTSProject || !alreadyCompiled) {
28
appContext = await compileStrapi();
29
} else {
30
- appContext = { appDir, outDir };
+ const distDir = isTSProject ? outDir : appDir;
31
+ appContext = { appDir, distDir };
32
}
33
+
34
const app = await createStrapi(appContext).load();
35
return app;
36
};
0 commit comments