Skip to content

Commit 84bcfb3

Browse files
fix: fix incorrect ServiceEndpoint
Closes #215
1 parent b073bea commit 84bcfb3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/deploy/events/apiGateway/deployment.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ module.exports = {
2727
[
2828
'https://',
2929
this.provider.getApiGatewayRestApiId(),
30-
`.execute-api.${this.options.region}.`,
30+
'.execute-api.',
31+
{ Ref: 'AWS::Region' },
32+
'.',
3133
{ Ref: 'AWS::URLSuffix' },
32-
`/${this.options.stage}`,
34+
`/${this.provider.getStage()}`,
3335
],
3436
],
3537
},

0 commit comments

Comments
 (0)