mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This consolidates our trace handling between turbotrace and the default `nodeFileTrace` handling to prevent over-tracing. With node-file-trace it's extremely more efficient to trace in a single `nodeFileTrace` run so that all resolving/analysis etc can be efficiently cached. Furthermore, this reduces the amount of chunks we need to trace by waiting until post build since automatically statically optimized paths don't need to be traced as they are rendered to purely HTML and never re-rendered. This reduces builds times by upwards of 4 - 5 minutes on larger projects.
18 lines
253 B
JavaScript
18 lines
253 B
JavaScript
import React from 'react'
|
|
import { World } from '@c/world'
|
|
|
|
// prevent static generation
|
|
export function getServerSideProps() {
|
|
return {
|
|
props: {},
|
|
}
|
|
}
|
|
|
|
export default function HelloPage() {
|
|
return (
|
|
<div>
|
|
<World />
|
|
</div>
|
|
)
|
|
}
|