File tree 3 files changed +18
-2
lines changed
3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -168,9 +168,20 @@ export default createBuilder(
168
168
context . logger . info (
169
169
`Deploying project from 📂 ./${ builderConfig . outputPath } `
170
170
) ;
171
+
172
+ let config = { } ;
173
+
174
+ if ( builderConfig . functionsPath ) {
175
+ console . log (
176
+ `Deploying functions from 📂 ./${ builderConfig . functionsPath } `
177
+ ) ;
178
+ config = { ...config , fnDir : builderConfig . functionsPath } ;
179
+ }
180
+
171
181
const response = await client . deploy (
172
182
siteId ,
173
- builderConfig . outputPath
183
+ builderConfig . outputPath ,
184
+ config
174
185
) ;
175
186
context . logger . info (
176
187
`✔ Your updated site 🕸 is running at ${ response . deploy . ssl_url } `
Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ export interface Schema {
3
3
configuration ?: string ;
4
4
noBuild ?: boolean ;
5
5
outputPath ?: boolean ;
6
+ functionsPath ?: boolean ;
6
7
netlifyToken ?: string ;
7
8
siteId ?: string ;
8
9
baseHref ?: string ;
9
10
create ?: boolean ;
10
- withDeps ?: boolean
11
+ withDeps ?: boolean ;
11
12
}
Original file line number Diff line number Diff line change 23
23
"type" : " string" ,
24
24
"description" : " This is one of the options you can freely choose according to your needs. --- We will 'deploy' to this folder."
25
25
},
26
+ "functionsPath" : {
27
+ "type" : " string" ,
28
+ "description" : " Path to the functions folder you want to deploy"
29
+ },
26
30
"netlifyToken" : {
27
31
"type" : " string" ,
28
32
"description" : " Acess token give you the ability to communicate with netlify over API."
You can’t perform that action at this time.
0 commit comments