> :loudspeaker: AppSync custom domain In `v1.0....
# general
f
📢 AppSync custom domain
In
v1.0.0-beta.21
, you can now configure custom domain for
sst.AppSyncApi
like this:
Copy code
new AppSyncApi(stack, "GraphqlApi", {
  schema: "graphql/schema.graphql",
  customDomain: "<http://api.domain.com|api.domain.com>",
});
More examples here.
📢 Lambda disk storage
For those of the adventurers here looking for 10GB disk storage, you can give it a spin like this:
Copy code
new Function(stack, "MyFunction", {
  handler: "src/lambda.handler",
  diskSize: "10 GB",
})
And finally, if you haven’t updated to
v1 beta
yet, here are the steps to move to v1.0.
t
Hey @Frank - poking around your upgrade guide and noticed that the example code and the type definitions don't match under the Function Changelog section. Should we be using numbers/Durations or strings there? (thanks for all the great work by the way - I'm sure prepping the docs for v1 is exhausting)
f
Yeah, we could really use another pair of eyes on the v1 doc 😅. So sst.Duration is actually a string type defined like this https://github.com/serverless-stack/serverless-stack/blob/master/packages/resources/src/util/duration.ts#L2-L10
It accepts a number
10
(for backward compatible), or an
sst.Duration
typed string
10 seconds
t
Gotcha - so technically correct, just could probably use an explainer section about the
sst.Duration
type somewhere. Is that new for v1?
I'm going through the v1 migration steps right now, so I'll let you know about anything I happen to catch. And our current project uses at least half of the constructs in v1
f
Yeah we added
sst.Duration
and
sst.Size
(ie.
10 GB
) in v1. Will add it to the doc!