title: Nuxt robots.txt using nginx & pm2
body: <p>I'm using nginx and pm2 to serve a nuxt app (SSR).
  I tried to use the <a href="https://sitemap.nuxtjs.org/" rel="nofollow noreferrer">sitemap module</a> and the <a href="https://github.com/nuxt-community/robots-module#readme" rel="nofollow noreferrer">robot.txt module</a>.</p>
  <p>The sitemap module works fine and is accessible at <code>/sitemap.xml</code>.</p>
  <p>However the <code>robots.txt</code> file is not accessible through nginx. Using <code>nuxt build</code> and <code>nuxt start</code> in local it works fine and I have access to <code>/robots.txt</code>. But using nginx I have a 404. Not the Nuxt 404 but the nginx one. All other inexistant url show the Nuxt 404</p>
  <p>Using Nuxt SSR and the robot module does not generate a <code>robots.txt</code> file. It's a middleware and response to <a href="https://github.com/nuxt-community/robots-module/issues/33#issuecomment-561144440" rel="nofollow noreferrer">the <code>/robots.txt</code> url is dynamically generated on each request</a></p>
  <p>Why do I have that 404 with the robot module but not with the sitemap?</p>
  <p>Thanks for your help.</p>