mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
- Fixes https://github.com/vercel/next.js/issues/54416 - Related to https://github.com/vercel/next.js/pull/47659 Co-authored-by: JJ Kasper <[email protected]>
7 lines
175 B
JavaScript
7 lines
175 B
JavaScript
import Image from 'next/image'
|
|
|
|
export async function middleware(request) {
|
|
// reference Image so it's not tree shaken / DCE
|
|
console.log(`Has image: ${Boolean(Image)}`)
|
|
}
|