I am using the NextJS JavaScript library.
Is it possible to deploy a headless CMS such as Strapi on a CDN since the website should be generated static?
As mentioned on Strapi homepage :
"You can now generate pages at deployment time and serve them over a CDN (...)".
Static pages need to be generated during deployment and then send over to a CDN (AWS S3 + AWS Cloudfront for example).
I suggest you read the full documentation :
https://strapi.io/documentation/3.0.0-beta.x/deployment/amazon-aws.html