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