mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
b2e711aaea
### What Add tests cases for dynamic routes and suspense page rendering case coverage for onRequestError. Mostly for checking the `routePath` where we can display the proper original route path Closes NDX-22 Closes NDX-79
8 lines
210 B
JavaScript
8 lines
210 B
JavaScript
export async function getOutputLogJson(next, outputLogPath) {
|
|
if (!(await next.hasFile(outputLogPath))) {
|
|
return {}
|
|
}
|
|
const content = await next.readFile(outputLogPath)
|
|
return JSON.parse(content)
|
|
}
|