rsnext/test/e2e/app-dir/metadata-dynamic-routes/app/favicon.tsx
Jiachi Liu 2a5c558963
Skip favicon.js for metadata (#47790)
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]`
2023-04-02 01:35:24 +02:00

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>
)
)
}