Files
8b9ae8314e Collect packages are used and eliminated in getServerSideProps (#35404)
Collect telemetry info about packages are used and eliminated in `getServerSideProps`

https://github.com/vercel/next-telemetry/pull/71


Co-authored-by: JJ Kasper <[email protected]>
2022-04-01 15:08:44 +00:00

12 lines
233 B
JavaScript

import fs from 'fs'
import path from 'path'
export default () => 'Hello World'
export function getServerSideProps() {
try {
fs.readyFile(path.join(process.cwd(), 'public/small.jpg'))
} catch (_) {}
return { props: {} }
}