mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 15:09:47 +00:00
fix: locally linked
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user