mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
- [x] Depends on https://github.com/vercel/next.js/pull/45776 Turbotrace occupies too many memories while running; this PR makes it run after the webpack build is finished, it can reduce the memory hogging by webpack and turbotrace, thus avoiding OOM The `maxFiles` option in turbotrace is removed because there is `memoryLimit` option takes over its role. Close WEB-556
9 lines
176 B
JavaScript
9 lines
176 B
JavaScript
import fs from 'fs'
|
|
import path from 'path'
|
|
|
|
export function getData() {
|
|
return JSON.parse(
|
|
fs.readFileSync(path.join(process.cwd(), 'content/hello.json'), 'utf8')
|
|
)
|
|
}
|