File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export function prepareEnvironment(input: {
22
22
: input . environment ;
23
23
24
24
const appDns = `app.${ input . rootDns } ` ;
25
+ const apiDns = `api.${ input . rootDns } ` ;
25
26
26
27
return {
27
28
envVars : {
@@ -38,6 +39,7 @@ export function prepareEnvironment(input: {
38
39
encryptionSecret,
39
40
release : input . release ,
40
41
appDns,
42
+ apiDns,
41
43
rootDns : input . rootDns ,
42
44
} ;
43
45
}
Original file line number Diff line number Diff line change @@ -100,5 +100,15 @@ export function deployProxy({
100
100
service : usage . service ,
101
101
retriable : true ,
102
102
} ,
103
+ ] )
104
+ . registerService ( { record : environment . apiDns } , [
105
+ {
106
+ name : 'graphql-api' ,
107
+ path : '/graphql' ,
108
+ customRewrite : '/graphql-public' ,
109
+ service : graphql . service ,
110
+ requestTimeout : '60s' ,
111
+ retriable : true ,
112
+ } ,
103
113
] ) ;
104
114
}
You can’t perform that action at this time.
0 commit comments