{"record":{"id":"c176b883e843427f","repo":"anomalyco/sst","slug":"region-region-is-not-supported-by-this-componen","errorCode":null,"errorMessage":"Region ${region} is not supported by this component. Please select a different AWS region.","messagePattern":"Region (.+?) is not supported by this component\\. Please select a different AWS region\\.","errorType":"validation","errorClass":"VisibleError","httpStatus":null,"severity":"error","filePath":"platform/src/components/aws/ssr-site.ts","lineNumber":1241,"sourceCode":"        if (regions.length === 0)\n          throw new VisibleError(\n            \"No deployment regions specified. Please specify at least one region in the 'regions' property.\",\n          );\n\n        return regions.map((region) => {\n          if (\n            [\n              \"ap-south-2\",\n              \"ap-southeast-4\",\n              \"ap-southeast-5\",\n              \"ca-west-1\",\n              \"eu-south-2\",\n              \"eu-central-2\",\n              \"il-central-1\",\n              \"me-central-1\",\n            ].includes(region)\n          )\n            throw new VisibleError(\n              `Region ${region} is not supported by this component. Please select a different AWS region.`,\n            );\n\n          if (!Object.values(Region).includes(region as Region))\n            throw new VisibleError(\n              `Invalid AWS region: \"${region}\". Please specify a valid AWS region.`,\n            );\n          return region as Region;\n        });\n      });\n    }\n\n    function normalizeRoute() {\n      const route = normalizeRouteArgs(args.router, args.route);\n\n      if (route) {\n        if (args.domain)\n          throw new VisibleError(","sourceCodeStart":1223,"sourceCodeEnd":1259,"githubUrl":"https://github.com/anomalyco/sst/blob/a0bd20f762883e72a35caccb4896c42ce5b3f707/platform/src/components/aws/ssr-site.ts#L1223-L1259","documentation":"Beyond being a valid AWS region string, SSR site regional deployment only supports a specific allow-list of regions (us/eu/ap/SA/AF/ME/il/ca central+standard regions listed in the source). If any entry in `regions` is a valid AWS region but outside that list, SST throws this error naming the offending region.","triggerScenarios":"Including an unsupported region string in the `regions` prop, e.g. `regions: [\"us-gov-west-1\"]`, `ap-southeast-5`, `cn-north-1`, or a newly launched region not yet in SST's allow-list.","commonSituations":"Deploying to a GovCloud/China partition; adopting a brand-new AWS region before SST adds it; picking a region string from the AWS console that isn't in SST's supported set.","solutions":["Replace the unsupported region with one from SST's supported list (e.g. us-east-1, eu-west-1, ap-southeast-1)","Deploy the stack into a supported region and omit `regions` to use it","Upgrade SST in case a newer version added the region to the allow-list"],"exampleFix":"// before\nnew sst.aws.NextjsSite(\"Web\", { path: \"src\", regions: [\"us-gov-west-1\"] });\n// after\nnew sst.aws.NextjsSite(\"Web\", { path: \"src\", regions: [\"us-east-1\"] });","handlingStrategy":"validation","validationCode":"const SUPPORTED = [\"us-east-1\",\"us-east-2\",\"us-west-1\",\"us-west-2\",\"ca-central-1\",\"eu-west-1\",\"eu-west-2\",\"eu-west-3\",\"eu-north-1\",\"eu-south-1\",\"eu-south-2\",\"eu-central-1\",\"eu-central-2\",\"ap-south-1\",\"ap-southeast-1\",\"ap-southeast-2\",\"ap-northeast-1\",\"ap-northeast-2\",\"ap-northeast-3\",\"ap-east-1\",\"sa-east-1\",\"af-south-1\",\"il-central-1\",\"me-central-1\"];\nfor (const r of regions) if (!SUPPORTED.includes(r)) throw new Error(`Unsupported region: ${r}`);","typeGuard":"function isSupportedRegion(r: string): r is sst.aws.SsrSiteArgs[\"regions\"] extends (infer R)[] | undefined ? R : never {\n  return SUPPORTED.includes(r);\n}","tryCatchPattern":"try {\n  new sst.aws.NextjsSite(\"Web\", { path: \"src\", regions });\n} catch (e) {\n  if (String(e).includes(\"not supported by this component\")) console.error(\"Use a region from SST's allow-list\");\n  throw e;\n}","preventionTips":["Check SST's supported-region list before adding a region","Avoid GovCloud/China partition regions with SSR sites","Upgrade SST when adopting newly launched regions"],"tags":["ssr-site","regions","aws","unsupported-region"],"backgroundTag":"unsupported-region","analyzedSha":"a0bd20f762883e72a35caccb4896c42ce5b3f707","analyzedAt":"2026-08-30T11:26:00.383Z","schemaVersion":2},"datasetVersion":"2026-08-30T13:17:10.514Z"}