Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Disable reload on jwt.json creation (#4246)
  • Loading branch information
alexandrebodin committed Oct 14, 2019
1 parent 2c994c4 commit 656343d
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -15,11 +15,13 @@ module.exports = async () => {
const jwtSecret = uuid();
_.set(strapi.plugins['users-permissions'], 'config.jwtSecret', jwtSecret);

strapi.reload.isWatching = false;
await strapi.fs.writePluginFile(
'users-permissions',
'config/jwt.json',
JSON.stringify({ jwtSecret }, null, 2)
);
strapi.reload.isWatching = true;
}

const pluginStore = strapi.store({
Expand Down

0 comments on commit 656343d

Please sign in to comment.