Adrián Mouly
07/30/2021, 3:51 AMFrank
sst deploy --stage STAGE
, you can configure the domain like:
sst.Api(this, "Api", {
customDomain: app.stage === "prod"
? "<http://api.mydomain.com|api.mydomain.com>"
: `${app.stage}.<http://api.mydomain.com|api.mydomain.com>`,
...
});
Is this what you are looking for?Adrián Mouly
08/02/2021, 3:22 AMcustomDomain: `api.${scope.stage}.<http://company-dev.net|company-dev.net>`,
But on SEED is using my local sst.json
config, not the stage from SEED. My json is:
{
"name": "mycompany",
"stage": "local",
"region": "ap-southeast-1",
"lint": false,
"typeCheck": false
}
Adrián Mouly
08/02/2021, 3:23 AMstage
is not being mapped to SEED stage, but the local file instead.Frank
scope.stage
has the stage from sst.json
, not the stage on Seed?Adrián Mouly
08/02/2021, 12:48 PM