mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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]>
12 lines
233 B
JavaScript
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: {} }
|
|
}
|