Single Page App + Amazon S3 + Amazon CloudFront + Prerender.io - how to set up?

后端 未结 5 1191
清歌不尽
清歌不尽 2021-02-07 09:15
  1. I have single page app built with Backbone.js.
  2. I host app (app consists of static files only) on Amazon S3.
  3. I use CloudFront as a Bucket CDN.
  4. Ap
5条回答
  •  温柔的废话
    2021-02-07 10:06

    As mentioned, it seems the easiest way to do this is to configure CloudFront/Lambda@Edge to proxy requests to a prerender service. I've found a repo that seems to take care of quite a bit of the aforementioned work for you: https://github.com/sanfrancesco/prerendercloud-lambda-edge

    This uses Lambda@Edge to prerender your app via a make deploy command. Unfortunately, this uses prerender.cloud, NOT prerender.io. Hopefully this isn't a blocker.

提交回复
热议问题