File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,6 @@ module.exports.activate = () => {
18
18
applyTaskDefaults ( task ) {
19
19
task . src = task . src || cds . env . folders . srv . replace ( / \/ $ / , '' )
20
20
}
21
- async lookupTasks ( ) {
22
- if ( process . env . NODE_ENV === 'production' ) {
23
- return [ { for : this . id } ]
24
- }
25
- }
26
21
get handler ( ) {
27
22
return class extends BuildTaskHandler {
28
23
async clean ( ) {
@@ -46,6 +41,16 @@ module.exports.activate = () => {
46
41
}
47
42
}
48
43
}
44
+ /**
45
+ * Additional constraints can be defined, e.g. generate openapi service specification in production builds only.
46
+ * > cds build --production
47
+ * > cds build --for node-cf --production
48
+ */
49
+ // async lookupTasks() {
50
+ // if (process.env.NODE_ENV === 'production') {
51
+ // return [{ for: this.id }]
52
+ // }
53
+ // }
49
54
} ) ( )
50
55
)
51
56
}
You can’t perform that action at this time.
0 commit comments