fix: app context dist directory
parent
251d8df336
commit
1e78cca1d3
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue