Files
b69dcb5dd2 Make ship happen (#41776)
The Snozzberries taste like Snozzberries...!

Co-authored-by: OJ Kwon <[email protected]>
Co-authored-by: LongYinan <[email protected]>
Co-authored-by: JJ Kasper <[email protected]>
Co-authored-by: Jared Palmer <[email protected]>
2022-10-25 02:56:26 -07:00

25 lines
499 B
JavaScript

import fs from 'fs'
import path from 'path'
import Image from 'next/image'
import testImage from '../public/test.jpg'
export default function Page(props) {
return (
<div>
<Image src={testImage} placeholder="blur" alt="test" />
</div>
)
}
export function getServerSideProps() {
try {
// this should be included in the trace since it's not an
// import
fs.readFileSync(path.join(process.cwd(), 'public/another.jpg'))
} catch (_) {}
return {
props: {},
}
}