fix: locally linked

This commit is contained in:
Travis Fischer
2024-10-31 20:49:33 -05:00
parent 0e40674e88
commit f6510ea9a1
51 changed files with 4744 additions and 4161 deletions

View File

@@ -1,18 +1,17 @@
import * as React from 'react'
import { NextRequest } from 'next/server'
import { ImageResponse } from '@vercel/og'
import ky from 'ky'
import { type NextRequest } from 'next/server'
import { api, apiHost, rootNotionPageId } from '@/lib/config'
import { NotionPageInfo } from '@/lib/types'
import { type NotionPageInfo } from '@/lib/types'
const interRegularFontP = fetch(
const interRegularFontP = ky(
new URL('../../public/fonts/Inter-Regular.ttf', import.meta.url)
).then((res) => res.arrayBuffer())
).arrayBuffer()
const interBoldFontP = fetch(
const interBoldFontP = ky(
new URL('../../public/fonts/Inter-SemiBold.ttf', import.meta.url)
).then((res) => res.arrayBuffer())
).arrayBuffer()
export const config = {
runtime: 'experimental-edge'