sst 2.2.3 → 2.2.5
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.
|
@@ -82,7 +82,7 @@ export const useKyselyTypeGenerator = Context.memo(async () => {
|
|
|
82
82
|
defaultDatabaseName: c.data.defaultDatabaseName,
|
|
83
83
|
secretArn: c.data.secretArn,
|
|
84
84
|
}));
|
|
85
|
-
databases.map((db) => generate(db).catch());
|
|
85
|
+
databases.map((db) => generate(db).catch(() => { }));
|
|
86
86
|
});
|
|
87
87
|
bus.subscribe("function.success", async (evt) => {
|
|
88
88
|
if (!evt.properties.body?.results)
|
|
@@ -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;
|
package/constructs/AppSyncApi.js
CHANGED
|
@@ -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: {
|
package/constructs/NextjsSite.js
CHANGED
|
@@ -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
|
|
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
package/sst.mjs
CHANGED
|
@@ -6439,7 +6439,8 @@ var init_kysely = __esm({
|
|
|
6439
6439
|
defaultDatabaseName: c.data.defaultDatabaseName,
|
|
6440
6440
|
secretArn: c.data.secretArn
|
|
6441
6441
|
}));
|
|
6442
|
-
databases.map((db) => generate2(db).catch()
|
|
6442
|
+
databases.map((db) => generate2(db).catch(() => {
|
|
6443
|
+
}));
|
|
6443
6444
|
});
|
|
6444
6445
|
bus.subscribe("function.success", async (evt) => {
|
|
6445
6446
|
if (!evt.properties.body?.results)
|