File size: 499 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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: {},
  }
}