mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
23 lines
427 B
JavaScript
23 lines
427 B
JavaScript
import React from 'react'
|
|
import Image from 'next/image'
|
|
import img from '../public/test.jpg'
|
|
|
|
const Page = () => {
|
|
return (
|
|
<div>
|
|
<p>Trailing Slash</p>
|
|
<Image id="import-img" alt="import-img" src={img} priority />
|
|
<br />
|
|
<Image
|
|
id="string-img"
|
|
alt="string-img"
|
|
src="/prefix/test.jpg"
|
|
width={200}
|
|
height={200}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Page
|