title: Nuxtjs - Error 404 with post request in production while working in local
body: <p>I'm actually trying to use <a href="https://www.npmjs.com/package/nuxt-mail" rel="nofollow noreferrer">nuxt-mail</a> in a personnal project,</p>
  <p>During my development phase, I receive all my testing mails. And from there I did the following adjustments to do the exact same request from my builded site :</p>
  <pre><code>//nuxt.config.js
  env: {
    baseUrl:
      process.env.NODE_ENV === 'dev'
        ? 'http://localhost:3000'
        : 'https://my-domain.netlify.app'
  },
  </code></pre>
  <p>My code when using the <em>'send'</em> function :</p>
  <pre><code>this.$axios.$post(process.env.baseUrl + &quot;/mail/send&quot;, {
          config: 'contact',
          from: document.getElementById('input-2').value,
          subject: document.getElementById('subject').value,
          text: &quot;This is a text message&quot;,
        })
  </code></pre>
  <p>It continues to work well with <em>localhost/3000/mail/send</em> but I have a 404 error once I build my site and using <em>https:/ /my-domain.netlify.app/mail/send</em> :</p>
  <pre><code>POST https://my-domain.netlify.app/mail/send                             [HTTP/2 404 Not Found 186ms]
  Uncaught (in promise) Error: Request failed with status code 404
  </code></pre>
  <p>I'm actually struggling to solve this problem, am I missing something ?</p>