mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Reduce the confusiong of the the logging of pages, make it easier to understand * Removing the trailing `/page`, `/route` suffix * Removing the internal segment like `[[...__metadata__]]` #### After ``` ○ Compiling / ... ○ Compiling /dynamic/[slug]/icon ... ``` #### Before ``` ○ Compiling /page ... ○ Compiling /(group)/dynamic/[slug]/icon-ahg52g/[[...__metadata_id__]]/route ... ``` Closes NEXT-1701
23 lines
455 B
React
23 lines
455 B
React
import { ImageResponse } from 'next/og'
|
|
|
|
export default function icon({ params, id }) {
|
|
return new ImageResponse(
|
|
(
|
|
<div
|
|
style={{
|
|
width: '100%',
|
|
height: '100%',
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
fontSize: 88,
|
|
background: '#000',
|
|
color: '#fafafa',
|
|
}}
|
|
>
|
|
Apple {params.size} {id}
|
|
</div>
|
|
)
|
|
)
|
|
}
|