DEV Community

Andres Concha
Andres Concha

Posted on

Deploy Nuxt.js project in AWS S3 and Cloudfront

Hi,

I'm a junior Nuxt developer and I'm having some issues when deploying my project in an AWS S3 with Cloudfront. The project is build according to the Nuxt docs in this link:
https://nuxtjs.org/faq/deployment-aws-s3-cloudfront/

The invalidations are executed succesfully but when I enter to the domain where the project is hosted, it doesn't update some styles, functionalities or even the backend URL. The project stills referencing to the previuos backend URL and does not change. Even if I reload with Ctrl + Shift or Ctrl + Shift + R, the page updates but if I close it and open a new tab, the issue appears again.
I don't know if it is a matter of cache, building of the project, deployment in AWS or Cloudfront invalidation. I have been looking for some similar cases but not any answer or solution that can help. If someone knows how to deploy correctly a Nuxt project with an AWS S3 with Cloudfront I would really appreciate your help.

Thanks,

Andres

Top comments (0)