This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/base64" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "os" | |
| "strings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import satori from 'satori'; | |
| import { Resvg } from '@resvg/resvg-js'; | |
| import { getCollection } from 'astro:content'; | |
| import { readFileSync } from 'node:fs'; | |
| import path from 'node:path'; | |
| export async function getStaticPaths() { | |
| const posts = await getCollection('blog'); | |
| const paths = []; |