File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -168,9 +168,20 @@ export default createBuilder(
168168 context . logger . info (
169169 `Deploying project from 📂 ./${ builderConfig . outputPath } `
170170 ) ;
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+
171181 const response = await client . deploy (
172182 siteId ,
173- builderConfig . outputPath
183+ builderConfig . outputPath ,
184+ config
174185 ) ;
175186 context . logger . info (
176187 `✔ 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 {
33 configuration ?: string ;
44 noBuild ?: boolean ;
55 outputPath ?: boolean ;
6+ functionsPath ?: boolean ;
67 netlifyToken ?: string ;
78 siteId ?: string ;
89 baseHref ?: string ;
910 create ?: boolean ;
10- withDeps ?: boolean
11+ withDeps ?: boolean ;
1112}
Original file line number Diff line number Diff line change 2323 "type" : " string" ,
2424 "description" : " This is one of the options you can freely choose according to your needs. --- We will 'deploy' to this folder."
2525 },
26+ "functionsPath" : {
27+ "type" : " string" ,
28+ "description" : " Path to the functions folder you want to deploy"
29+ },
2630 "netlifyToken" : {
2731 "type" : " string" ,
2832 "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