Skip to content

Commit 4f8cf90

Browse files
authored
add react in runtime in og edge function (#1716)
1 parent bf1b730 commit 4f8cf90

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

apps/web/netlify/edge-functions/og.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// deno-lint-ignore no-import-prefix no-unused-vars
2+
import React from "https://esm.sh/react@18.2.0";
13
// deno-lint-ignore no-import-prefix
24
import { ImageResponse } from "https://deno.land/x/og_edge@0.0.6/mod.ts";
35
// deno-lint-ignore no-import-prefix

dprint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"**/migrations/**",
3131
"**/tests/*.sql",
3232
"**/charts/**",
33-
"**/schema.json"
33+
"**/schema.json",
34+
"**/netlify/edge-functions"
3435
],
3536
"exec": {
3637
"cwd": "${configDir}",

0 commit comments

Comments
 (0)