title: Static assets from cdn in nuxt.js problem with link
body: <p>I'm trying to serve my static assets from s3. I created on AWS a bucket where I keep my project and cloudFront for it.</p>
  
  <p>In nuxt.config.js in build section I've defined publicPath which is my CNAME from cloudFront for example <code>https://assets.eglebegle.com</code></p>
  
  <pre><code>build: {
         publicPath: 'https://assets.eglebegle.com'
   }
  </code></pre>
  
  <p>But on webpagetest I've see link to the bucket on s3:  <code>https://s3.eu-west-1.amazonaws.com/eglebegle/dist/3723d572a5470dd8435b.js.</code></p>
  
  <p>Is there any way to change that? I would like to see <code>https://assets.eglebegle.com/dist/3769d572a5470dd8435b.js</code></p>