docs: add Railway self-hosting guide (#228)
This commit is contained in:
@@ -86,7 +86,7 @@ export async function addDomain(
|
||||
domain: string,
|
||||
region: string,
|
||||
sesTenantId?: string,
|
||||
dkimSelector: string = "usesend",
|
||||
dkimSelector: string = "usesend"
|
||||
) {
|
||||
const sesClient = getSesClient(region);
|
||||
|
||||
@@ -115,13 +115,13 @@ export async function addDomain(
|
||||
});
|
||||
|
||||
const tenantResourceAssociationResponse = await sesClient.send(
|
||||
tenantResourceAssociationCommand,
|
||||
tenantResourceAssociationCommand
|
||||
);
|
||||
|
||||
if (tenantResourceAssociationResponse.$metadata.httpStatusCode !== 200) {
|
||||
logger.error(
|
||||
{ tenantResourceAssociationResponse },
|
||||
"Failed to associate domain with tenant",
|
||||
"Failed to associate domain with tenant"
|
||||
);
|
||||
throw new Error("Failed to associate domain with tenant");
|
||||
}
|
||||
@@ -133,7 +133,7 @@ export async function addDomain(
|
||||
) {
|
||||
logger.error(
|
||||
{ response, emailIdentityResponse },
|
||||
"Failed to create domain identity",
|
||||
"Failed to create domain identity"
|
||||
);
|
||||
throw new Error("Failed to create domain identity");
|
||||
}
|
||||
@@ -144,7 +144,7 @@ export async function addDomain(
|
||||
export async function deleteDomain(
|
||||
domain: string,
|
||||
region: string,
|
||||
sesTenantId?: string,
|
||||
sesTenantId?: string
|
||||
) {
|
||||
const sesClient = getSesClient(region);
|
||||
|
||||
@@ -156,13 +156,13 @@ export async function deleteDomain(
|
||||
});
|
||||
|
||||
const tenantResourceAssociationResponse = await sesClient.send(
|
||||
tenantResourceAssociationCommand,
|
||||
tenantResourceAssociationCommand
|
||||
);
|
||||
|
||||
if (tenantResourceAssociationResponse.$metadata.httpStatusCode !== 200) {
|
||||
logger.error(
|
||||
{ tenantResourceAssociationResponse },
|
||||
"Failed to delete tenant resource association",
|
||||
"Failed to delete tenant resource association"
|
||||
);
|
||||
throw new Error("Failed to delete tenant resource association");
|
||||
}
|
||||
@@ -292,7 +292,7 @@ export async function addWebhookConfiguration(
|
||||
configName: string,
|
||||
topicArn: string,
|
||||
eventTypes: EventType[],
|
||||
region: string,
|
||||
region: string
|
||||
) {
|
||||
const sesClient = getSesClient(region);
|
||||
|
||||
|
Reference in New Issue
Block a user