File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -815,9 +815,9 @@ impl Project {
815
815
let node_execution_chunking_context = Vc :: upcast (
816
816
NodeJsChunkingContext :: builder (
817
817
self . project_root_path ( ) . owned ( ) . await ?,
818
- node_root. clone ( ) ,
818
+ node_root. join ( "build" ) ? ,
819
819
self . node_root_to_root_path ( ) . owned ( ) . await ?,
820
- node_root. clone ( ) ,
820
+ node_root. join ( "build" ) ? ,
821
821
node_root. join ( "build/chunks" ) ?,
822
822
node_root. join ( "build/assets" ) ?,
823
823
node_build_environment ( ) . to_resolved ( ) . await ?,
Original file line number Diff line number Diff line change @@ -2818,6 +2818,10 @@ export default async function build(
2818
2818
)
2819
2819
)
2820
2820
2821
+ const sortedStaticPaths = Array . from ( staticPaths . entries ( ) ) . sort (
2822
+ ( [ a ] , [ b ] ) => a . localeCompare ( b )
2823
+ )
2824
+
2821
2825
const exportApp = ( require ( '../export' ) as typeof import ( '../export' ) )
2822
2826
. default as typeof import ( '../export' ) . default
2823
2827
@@ -2885,7 +2889,7 @@ export default async function build(
2885
2889
2886
2890
// TODO: output manifest specific to app paths and their
2887
2891
// revalidate periods and dynamicParams settings
2888
- staticPaths . forEach ( ( routes , originalAppPath ) => {
2892
+ sortedStaticPaths . forEach ( ( [ originalAppPath , routes ] ) => {
2889
2893
const appConfig = appDefaultConfigs . get ( originalAppPath )
2890
2894
const isDynamicError = appConfig ?. dynamic === 'error'
2891
2895
@@ -3054,7 +3058,7 @@ export default async function build(
3054
3058
await fs . unlink ( serverBundle )
3055
3059
}
3056
3060
3057
- staticPaths . forEach ( ( prerenderedRoutes , originalAppPath ) => {
3061
+ sortedStaticPaths . forEach ( ( [ originalAppPath , prerenderedRoutes ] ) => {
3058
3062
const page = appNormalizedPaths . get ( originalAppPath )
3059
3063
if ( ! page ) throw new InvariantError ( 'Page not found' )
3060
3064
Original file line number Diff line number Diff line change @@ -104,13 +104,7 @@ export async function turbopackBuild(): Promise<{
104
104
} )
105
105
await fs . writeFile (
106
106
path . join ( distDir , 'package.json' ) ,
107
- JSON . stringify (
108
- {
109
- type : 'commonjs' ,
110
- } ,
111
- null ,
112
- 2
113
- )
107
+ '{"type": "commonjs"}'
114
108
)
115
109
116
110
// eslint-disable-next-line @typescript-eslint/no-unused-vars
You can’t perform that action at this time.
0 commit comments