mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
[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`
17 lines
292 B
JavaScript
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
|