chore: fmt [no ci]
This commit is contained in:
@@ -173,18 +173,9 @@ import { ImageResponse } from "next/og";
|
|||||||
export const size = { width: 1200, height: 630 };
|
export const size = { width: 1200, height: 630 };
|
||||||
|
|
||||||
export default function OGImage() {
|
export default function OGImage() {
|
||||||
return new ImageResponse(
|
return new ImageResponse(<div style={{/* ... */}}>Buzz Feature</div>, {
|
||||||
<div
|
...size,
|
||||||
style={
|
});
|
||||||
{
|
|
||||||
/* ... */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
>
|
|
||||||
Buzz Feature
|
|
||||||
</div>,
|
|
||||||
{ ...size },
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,10 @@ type LiveResponse =
|
|||||||
| "none";
|
| "none";
|
||||||
|
|
||||||
export async function GET(request: Request) {
|
export async function GET(request: Request) {
|
||||||
const liveUrl = new URL("https://buzz.sudloh.com/api/live", request.url).toString();
|
const liveUrl = new URL(
|
||||||
|
"https://buzz.sudloh.com/api/live",
|
||||||
|
request.url,
|
||||||
|
).toString();
|
||||||
const response = await fetch(liveUrl, {
|
const response = await fetch(liveUrl, {
|
||||||
cache: "no-store",
|
cache: "no-store",
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"bunVersion": "1.x"
|
"bunVersion": "1.x"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user