Skip to content

Commit 61918b1

Browse files
fix: replace options with serverless provider config to apply region
1 parent df3aac0 commit 61918b1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

package/lib/compileFunctions.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,9 @@ module.exports = {
2424
validateHandlerProperty(funcObject, functionName);
2525
validateEventsProperty(funcObject, functionName);
2626

27-
console.log('----------------------------------------------------------')
28-
console.log(this.options)
29-
console.log('----------------------------------------------------------')
30-
3127
const funcTemplate = getFunctionTemplate(
3228
funcObject,
33-
this.options.region,
29+
this.serverless.service.provider.region,
3430
`gs://${
3531
this.serverless.service.provider.deploymentBucketName
3632
}/${this.serverless.service.package.artifactFilePath}`);

0 commit comments

Comments
 (0)