Minor fixes

This commit is contained in:
Convly 2022-03-15 15:28:50 +01:00
parent b1fe71955f
commit f1d9ebec06
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ const primaryProcess = async ({
const workerProcess = ({ dir, watchAdmin, polling }) => {
const strapiInstance = strapi({
dir,
distDir: dir,
autoReload: true,
serveAdminPanel: watchAdmin ? false : true,
});

View File

@ -36,7 +36,7 @@ const loadFiles = async (
if (path.extname(absolutePath) === '.json') {
mod = await fse.readJson(absolutePath);
} else {
mod = importDefault(requireFn(absolutePath));
mod = importDefault(requireFn(absolutePath)).default;
}
Object.defineProperty(mod, '__filename__', {