2a5c558963
For backward compatibility, we only handle `favicon.ico` file to generate `/favicon.ico` route and link tag. If you want to use other extension such as `png`, use `icon(\d)?.[ext]`
23 lines
459 B
TypeScript
23 lines
459 B
TypeScript
// This file should be ignored
|
|
import { ImageResponse } from 'next/server'
|
|
|
|
export default function favicon() {
|
|
return new ImageResponse(
|
|
(
|
|
<div
|
|
style={{
|
|
width: '100%',
|
|
height: '100%',
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
fontSize: 88,
|
|
background: '#fff',
|
|
color: '#000',
|
|
}}
|
|
>
|
|
Favicon
|
|
</div>
|
|
)
|
|
)
|
|
}
|