We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1592eff commit 8434ff9Copy full SHA for 8434ff9
README.md
@@ -0,0 +1,17 @@
1
+# puppeteer-screenshot
2
+
3
+Vercel app for taking screenshots of web pages using Puppeteer
4
5
+Original code by [@styfle](https://github.com/styfle) in [this pull request](https://github.com/vercel/now-examples/pull/207).
6
7
+I upgraded the code to work with the latest Vercel and added a `?key=` mechanism to protect it from unauthorized access.
8
9
+## Usage
10
11
+Set a Vercel secret called `SECRET_KEY` with a random string in it (I generated mine by running `uuidgen | md5`), then deploy.
12
13
+You can access screenshots for pages using:
14
15
+ https:/.../zeit.co/blog?type=png&key=...
16
17
+Screenshots can take several seconds to generate so it's a good idea to cache them somewhere.
0 commit comments