File tree 3 files changed +18
-13
lines changed
generators/application/files/common
3 files changed +18
-13
lines changed Original file line number Diff line number Diff line change 2
2
/// <reference types="next/image-types/global" />
3
3
4
4
// NOTE: This file should not be edited
5
- // see https://nextjs.org/docs/<%- appDirType %>/building-your-application/configuring /typescript for more information.
5
+ // see https://nextjs.org/docs/<%- appDirType %>/api-reference/config /typescript for more information.
Original file line number Diff line number Diff line change @@ -40,12 +40,12 @@ exports[`@nx/next/plugin integrated projects should create nodes 1`] = `
40
40
},
41
41
},
42
42
" my-serve-static" : {
43
- " executor" : " @nx/web:file-server" ,
43
+ " command" : " next start" ,
44
+ " dependsOn" : [
45
+ " my-build" ,
46
+ ],
44
47
" options" : {
45
- " buildTarget" : " my-build" ,
46
- " port" : 3000 ,
47
- " spa" : false ,
48
- " staticFilePath" : " {projectRoot}/out" ,
48
+ " cwd" : " my-app" ,
49
49
},
50
50
},
51
51
" my-start" : {
@@ -105,12 +105,12 @@ exports[`@nx/next/plugin root projects should create nodes 1`] = `
105
105
},
106
106
},
107
107
" serve-static" : {
108
- " executor" : " @nx/web:file-server" ,
108
+ " command" : " next start" ,
109
+ " dependsOn" : [
110
+ " build" ,
111
+ ],
109
112
" options" : {
110
- " buildTarget" : " build" ,
111
- " port" : 3000 ,
112
- " spa" : false ,
113
- " staticFilePath" : " {projectRoot}/out" ,
113
+ " cwd" : " ." ,
114
114
},
115
115
},
116
116
" start" : {
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ export interface NextPluginOptions {
26
26
buildTargetName ?: string ;
27
27
devTargetName ?: string ;
28
28
startTargetName ?: string ;
29
+ /**
30
+ * @deprecated Use `startTargetName` instead.
31
+ */
29
32
serveStaticTargetName ?: string ;
30
33
}
31
34
@@ -166,9 +169,11 @@ async function buildNextTargets(
166
169
167
170
targets [ options . devTargetName ] = getDevTargetConfig ( projectRoot ) ;
168
171
169
- targets [ options . startTargetName ] = getStartTargetConfig ( options , projectRoot ) ;
172
+ const startTarget = getStartTargetConfig ( options , projectRoot ) ;
170
173
171
- targets [ options . serveStaticTargetName ] = getStaticServeTargetConfig ( options ) ;
174
+ targets [ options . startTargetName ] = startTarget ;
175
+
176
+ targets [ options . serveStaticTargetName ] = startTarget ;
172
177
173
178
return targets ;
174
179
}
You can’t perform that action at this time.
0 commit comments