mirror of
https://github.com/strapi/strapi.git
synced 2025-12-25 06:04:29 +00:00
Disable reload on jwt.json creation (#4246)
This commit is contained in:
parent
2c994c43f6
commit
656343d059
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user