Custom Domains in serverless APIs

Link to chapter — https://serverless-stack.com/chapters/custom-domains-in-serverless-apis.html

i have skipped the domain purchase chapter
I replaced it with the domain shown to me
As shown in the picture
How can I activate it without buying a domain?

You can just remove the domain code from there.

I don’t understand can you explain, thanks in advance

If you mean it like this
This also did not work

What’s the error you are getting now?

Btw, join our Discord, it’s easier to help you through the chat: SST

1 Like

I’m getting this error when running the npx sst deploy --stage prod command:

prod-notes-ApiStack failed: The following context variables are not supported: [$context.identity.cognitoIdentityId] (Service: AmazonApiGatewayV2; Status Code: 400; Error Code: BadRequestException; Request ID: 5aef6cdd-a10e-4abc-bd0c-08040632e4e6; Proxy: null)

Then it rolls back all resource creation.
Thanks for any help

It was an AWS issue, we rolled out a fix for this. Try the latest SST version.