remove frame
c4e9c85b
2 file(s) · +0 −33
| 14 | 14 | ogImage ? ogImage : "/social-card.png", |
|
| 15 | 15 | Astro.url, |
|
| 16 | 16 | ).href; |
|
| 17 | - | ||
| 18 | - | const frameEmbed = JSON.stringify({ |
|
| 19 | - | version: "next", |
|
| 20 | - | imageUrl: "https://stevedylan.dev/social-card.png", |
|
| 21 | - | button: { |
|
| 22 | - | title: "Open", |
|
| 23 | - | action: { |
|
| 24 | - | type: "launch_frame", |
|
| 25 | - | name: "stevedylan.dev", |
|
| 26 | - | url: "https://stevedylan.dev", |
|
| 27 | - | splashImageUrl: "https://www.stevedylan.dev/512x512.png", |
|
| 28 | - | splashBackgroundColor: "#000000", |
|
| 29 | - | }, |
|
| 30 | - | }, |
|
| 31 | - | }); |
|
| 32 | 17 | --- |
|
| 33 | 18 | ||
| 34 | 19 | <meta charset="utf-8" /> |
|
| 79 | 64 | ||
| 80 | 65 | <!-- RSS auto-discovery --> |
|
| 81 | 66 | <link rel="alternate" type="application/rss+xml" title={siteConfig.title} href="/rss.xml" /> |
|
| 82 | - | ||
| 83 | - | <meta name="fc:frame" content={frameEmbed} /> |
|
| 1 | - | import type { APIRoute } from "astro"; |
|
| 2 | - | ||
| 3 | - | export const GET: APIRoute = async () => { |
|
| 4 | - | const config = { |
|
| 5 | - | frame: { |
|
| 6 | - | version: "0.0.1", |
|
| 7 | - | name: "stevedylan.dev", |
|
| 8 | - | iconUrl: "https://stevedylan.dev/512x512.png", |
|
| 9 | - | splashImageUrl: "https://stevedylan.dev/512x512.png", |
|
| 10 | - | splashBackgroundColor: "#000000", |
|
| 11 | - | homeUrl: "https://stevedylan.dev", |
|
| 12 | - | }, |
|
| 13 | - | }; |
|
| 14 | - | ||
| 15 | - | return Response.json(config); |
|
| 16 | - | }; |