sst 2.0.0-rc.63 → 2.0.0-rc.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -245,7 +245,7 @@ export interface AppSyncApiProps {
245
245
  * });
246
246
  * ```
247
247
  */
248
- schema: string | string[];
248
+ schema?: string | string[];
249
249
  /**
250
250
  * Specify a custom domain to use in addition to the automatically generated one. SST currently supports domains that are configured using [Route 53](https://aws.amazon.com/route53/)
251
251
  *
@@ -278,7 +278,10 @@ export class AppSyncApi extends Construct {
278
278
  {});
279
279
  // build schema
280
280
  let mainSchema;
281
- if (typeof schema === "string") {
281
+ if (!schema) {
282
+ throw new Error(`Missing "schema" in "${id}" AppSyncApi`);
283
+ }
284
+ else if (typeof schema === "string") {
282
285
  mainSchema = appsync.SchemaFile.fromAsset(schema);
283
286
  }
284
287
  else {
@@ -89,7 +89,7 @@ export class NextjsSite extends SsrSite {
89
89
  const fn = new EdgeFunction(this, "Middleware", {
90
90
  bundlePath,
91
91
  handler,
92
- timeout: 10,
92
+ timeout: 5,
93
93
  memorySize: 128,
94
94
  permissions,
95
95
  environment,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sst",
3
- "version": "2.0.0-rc.63",
3
+ "version": "2.0.0-rc.64",
4
4
  "bin": {
5
5
  "sst": "cli/sst.js"
6
6
  },
@@ -92,6 +92,7 @@
92
92
  "devDependencies": {
93
93
  "@aws-sdk/client-codebuild": "^3.257.0",
94
94
  "@aws-sdk/types": "^3.208.0",
95
+ "@graphql-tools/merge": "^8.3.16",
95
96
  "@sls-next/lambda-at-edge": "^3.7.0",
96
97
  "@tsconfig/node16": "^1.0.3",
97
98
  "@types/adm-zip": "^0.5.0",