Change file without triggering a reload of Strapi

Hello,
I’m creating a plugin that requires creating files, the problem (I think) is that Strapi is reloading before I’m done creating all the files, thus breaking.

How could I delay or stop the refresh of Strapi?

Thanks

Forgot to add a await in /config/functions/bootstrap.js, I think that is what fixed the issue

    watchIgnoreFiles: [
      './my-custom-folder', // Folder
      './scripts/someScript.sh', // File
    ],
1 Like