title: Nuxt js restart server on api folder changes
body: <p>In  my nuxt js application, I am trying to restart the server files which is in the <code>api</code> folder when a file changes.</p>
  
  <p>In order to that, I've added the following to <code>nuxt.config.js</code> </p>
  
  <pre><code>build: {
      watch: ["~/api/index.js"]
  
  }
  </code></pre>
  
  <p>When I make the changes on the files in API folder server doesn't restarted automatically</p>
  
  <p>I've tried this thread <a href="https://stackoverflow.com/questions/46653714/watch-and-reload-api-folder-in-vue-nuxt?rq=1">Watch and reload api folder in Vue Nuxt</a> looks similar to my problem but it doesn't worked for me </p>