@vercel/og 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # @vercel/og
2
+
3
+ ## Basic Usage
4
+
5
+ Install `@vercel/og`, then use it inside Edge API routes in your Next.js project:
6
+
7
+ ```jsx
8
+ // /pages/api/og.jsx
9
+ import { ImageResponse } from '@vercel/og'
10
+
11
+ export const config = {
12
+ runtime: 'experimental-edge',
13
+ }
14
+
15
+ export default function () {
16
+ return new ImageResponse(
17
+ (
18
+ <div
19
+ style={{
20
+ fontSize: 128,
21
+ background: 'white',
22
+ width: '100%',
23
+ height: '100%',
24
+ }}
25
+ >
26
+ Hello!
27
+ </div>
28
+ )
29
+ )
30
+ }
31
+ ```