mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 12:13:52 +00:00
Minor fixes
This commit is contained in:
parent
b1fe71955f
commit
f1d9ebec06
@ -107,7 +107,7 @@ const primaryProcess = async ({
|
||||
|
||||
const workerProcess = ({ dir, watchAdmin, polling }) => {
|
||||
const strapiInstance = strapi({
|
||||
dir,
|
||||
distDir: dir,
|
||||
autoReload: true,
|
||||
serveAdminPanel: watchAdmin ? false : true,
|
||||
});
|
||||
|
||||
@ -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__', {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user