Commit Graph

21 Commits

Author SHA1 Message Date
Dillon Kearns
cbb422e52b Update hackernews demo site. 2022-05-11 14:50:58 -07:00
Dillon Kearns
a885a36ed1 Update screenshot endpoint to lookup by airtable record id. 2021-05-24 15:27:40 -07:00
Dillon Kearns
1486ad2a29 Add content-length to image and make sure it's base-64 encoded. 2021-05-14 14:54:28 -07:00
Dillon Kearns
c929566208 Add png content-type in screenshot function. 2021-05-14 14:39:41 -07:00
Dillon Kearns
954136f380 Use url with redirect name for screenshot in cloudinary write-through. 2021-05-14 14:27:31 -07:00
Dillon Kearns
c6e7f18caf Add process url function. 2021-05-14 14:15:55 -07:00
Dillon Kearns
3417c8992e Set stale-while-revalidate header. 2021-05-10 21:17:17 -07:00
Dillon Kearns
ab934b306a Update max-age time. 2021-05-10 20:24:46 -07:00
Dillon Kearns
f7f34e654b Use encoded path for screenshot URL so it works with caching (query params caused cache hits for different urls). 2021-05-10 15:58:29 -07:00
Dillon Kearns
a0fea1fdb6 Add cache-control header. 2021-05-10 15:40:43 -07:00
Dillon Kearns
ecefb3ec1f Add screenshot URL function. 2021-05-10 15:14:15 -07:00
Dillon Kearns
4ddf97bb91 Render time with a netlify function. 2021-04-29 07:27:19 -07:00
Dillon Kearns
38d6b65477 Add serverless request Page builder. 2021-04-24 16:01:31 -07:00
Dillon Kearns
11835f155f Handle incoming content.json requests in render serverless function. 2021-03-29 08:59:53 -07:00
Dillon Kearns
0c564bc5fe Clean up serverless render adapter code and return HTML error code. 2021-03-28 19:30:55 -07:00
Dillon Kearns
ec7ba930b9 Run renderer for the specific page being requested only, not all pages. 2021-03-25 08:04:59 -07:00
Dillon Kearns
d63ce72018 Use __dirname to resolve path. 2021-03-23 22:28:00 -07:00
Dillon Kearns
cf78609367 Copy elm-pages CLI compiled Elm code to functions folder for renderer. 2021-03-23 22:19:58 -07:00
Dillon Kearns
d685e0365e Change directory context for renderer. 2021-03-23 22:03:12 -07:00
Dillon Kearns
05e220b51d Update directory context in renderer function. 2021-03-23 21:03:10 -07:00
Dillon Kearns
71b32795e5 Add initial hardcoded serverless render prototype. 2021-03-23 19:34:12 -07:00