sst 2.2.3 → 2.2.4

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.
@@ -507,7 +507,7 @@ export declare class AppSyncApi extends Construct implements SSTConstruct {
507
507
  };
508
508
  };
509
509
  /** @internal */
510
- getFunctionBinding(): FunctionBindingProps;
510
+ getFunctionBinding(): FunctionBindingProps | undefined;
511
511
  private createGraphApi;
512
512
  private addDataSource;
513
513
  private addResolver;
@@ -252,6 +252,10 @@ export class AppSyncApi extends Construct {
252
252
  }
253
253
  /** @internal */
254
254
  getFunctionBinding() {
255
+ // Do not bind imported AppSync APIs b/c we don't know the API URL
256
+ if (!this.url) {
257
+ return;
258
+ }
255
259
  return {
256
260
  clientPackage: "api",
257
261
  variables: {
@@ -147,7 +147,7 @@ export class NextjsSite extends SsrSite {
147
147
  };
148
148
  // Create default behavior
149
149
  // default handler for requests that don't match any other path:
150
- // - try lambda handler first first
150
+ // - try lambda handler first
151
151
  // - if failed, fall back to S3
152
152
  const fallbackOriginGroup = new OriginGroup({
153
153
  primaryOrigin: serverBehavior.origin,
@@ -160,6 +160,7 @@ export class NextjsSite extends SsrSite {
160
160
  compress: true,
161
161
  cachePolicy: serverBehavior.cachePolicy,
162
162
  edgeLambdas: serverBehavior.edgeLambdas,
163
+ ...(cfDistributionProps.defaultBehavior || {}),
163
164
  };
164
165
  /**
165
166
  * Next.js requests
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sst",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "bin": {
5
5
  "sst": "cli/sst.js"
6
6
  },