mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Removes `__` prefix and ensures it's available on client/server as expected. x-ref: [slack thread](https://vercel.slack.com/archives/C04TNLL0LSK/p1687197571572119)
28 lines
563 B
TypeScript
28 lines
563 B
TypeScript
import testImage from '../public/test.jpg'
|
|
import Image from 'next/image'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<>
|
|
<p>hello pages edge</p>
|
|
<Image src={testImage} alt="test image" />
|
|
<p id="deploymentId">{process.env.NEXT_DEPLOYMENT_ID}</p>
|
|
|
|
<button
|
|
onClick={() => {
|
|
import('../data').then((mod) => {
|
|
console.log('loaded data', mod)
|
|
})
|
|
}}
|
|
id="dynamic-import"
|
|
>
|
|
click me
|
|
</button>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export const config = {
|
|
runtime: 'experimental-edge',
|
|
}
|