I’m developing a plugin to build my SSR nuxtjs project. I would like to run some terminal commands to build and copy the project to a folder, and retrieve the script result back to the plugin front-end.
I already have the code to do the above and it makes use of the “spawn_process” module. To achieve that the code must run on the “node” back end part of strapi. I have tried to put my code inside the plugin service file or in the functions folder but I always get the same error:
error Error: Cannot find module 'spawn_process'
Is this possible, or perhaps there is a better approach?