Files
Jiachi LiuandGitHub 062dc38fb9 Fix image loader file emission path for edge runtime (#50683)
[slack-thread](https://vercel.slack.com/archives/C04DUD7EB1B/p1685646762333709?thread_ts=1685643782.265269&cid=C04DUD7EB1B)

Using image in pages SSR emitting the static image files into `<rootDir>/static/media`, which should be located at `<rootDir>/.next/static/media`
2023-06-02 14:01:53 +00:00

17 lines
292 B
JavaScript

import Image from 'next/image'
import profilePic from '../public/small.jpg'
export const runtime = 'experimental-edge'
function About() {
return (
<>
<h1>edge</h1>
<Image src={profilePic} alt="Picture of the author in edge runtime" />
</>
)
}
export default About