So, I have a two stacks, for eg. /auth and /profil...
# help
So, I have a two stacks, for eg. /auth and /profile and existed domain in ApiGateway, for eg (endpoint type - edge) Is there any posibility to connect existing stacks to that domain what are splitted by basePath, like* and* ? Thank you p.s. I tried many variants how to do it but without any results
Not sure if I fully understand your question but typically people will create a core stack with the API gateway, then pass it to other stacks to add routes
It's a legacy project.. Some part of infrastructure was created by terraform and for adding new endpoints we need to attach them to existing ApiGateway with Custom Domain. Is it clear?
ah I see. I believe you can pass in
as a prop to
I’ve only done this with the CDK RestApi construct but what I did was use a BasePathMapping (which is from CDK directly). You provide that with the CustomDomain construct and give it the basePath and api references. I’m pretty sure the Api construct in SST has a shortcut for this.
Yea, basically ignore what I said 😂
yeah, but Edge endpoints managed only with
it is a sad...
@Serhii Arendarchuk, are both
created in Terraform, and domains are already configured for the two endpoints. And now in SST you want to add additional routes to the endpoints. Is that what you are asking?
No, I want to attach /auth stack and /profile stack to the same custom domain which using edge endpoints type Also, yesterday I saw the issue, when I configured a custom domain the websocket debug was broken
hmm that’s weird. Let’s figure out the first issue first.
Can you see if it works for you?