sst 2.8.24 → 2.8.26
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.
- package/cli/commands/update.js +6 -1
- package/constructs/Api.js +1 -0
- package/node/graphql/index.js +4 -1
- package/package.json +1 -1
- package/sst.mjs +6 -1
package/cli/commands/update.js
CHANGED
|
@@ -54,7 +54,12 @@ export const update = (program) => program.command("update [version]", "Update y
|
|
|
54
54
|
continue;
|
|
55
55
|
const desired = (() => {
|
|
56
56
|
// Both sst and astro-sst should be sharing the same version
|
|
57
|
-
if ([
|
|
57
|
+
if ([
|
|
58
|
+
"sst",
|
|
59
|
+
"astro-sst",
|
|
60
|
+
"svelte-kit-sst",
|
|
61
|
+
"solid-start-sst",
|
|
62
|
+
].includes(pkg))
|
|
58
63
|
return metadata.version;
|
|
59
64
|
if (pkg === "constructs")
|
|
60
65
|
return metadata.dependencies.constructs;
|
package/constructs/Api.js
CHANGED
|
@@ -586,6 +586,7 @@ export class Api extends Construct {
|
|
|
586
586
|
}, postfixName);
|
|
587
587
|
const data = this.routesData[routeKey];
|
|
588
588
|
if (data.type === "function") {
|
|
589
|
+
data.function.addEnvironment("GRAPHQL_ENDPOINT", routeKey.split(" ")[1]);
|
|
589
590
|
this.routesData[routeKey] = {
|
|
590
591
|
...data,
|
|
591
592
|
type: "graphql",
|
package/node/graphql/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { createYoga } from "graphql-yoga";
|
|
2
2
|
import { Handler, useEvent, useLambdaContext } from "../../context/handler.js";
|
|
3
3
|
export function GraphQLHandler(options) {
|
|
4
|
-
const yoga = createYoga(
|
|
4
|
+
const yoga = createYoga({
|
|
5
|
+
graphqlEndpoint: process.env.GRAPHQL_ENDPOINT,
|
|
6
|
+
...options,
|
|
7
|
+
});
|
|
5
8
|
return Handler("api", async () => {
|
|
6
9
|
const event = useEvent("api");
|
|
7
10
|
const parameters = new URLSearchParams(event.queryStringParameters || {}).toString();
|
package/package.json
CHANGED
package/sst.mjs
CHANGED
|
@@ -47629,7 +47629,12 @@ var update = (program2) => program2.command(
|
|
|
47629
47629
|
if (!PACKAGE_MATCH.some((x) => pkg.startsWith(x)))
|
|
47630
47630
|
continue;
|
|
47631
47631
|
const desired = (() => {
|
|
47632
|
-
if ([
|
|
47632
|
+
if ([
|
|
47633
|
+
"sst",
|
|
47634
|
+
"astro-sst",
|
|
47635
|
+
"svelte-kit-sst",
|
|
47636
|
+
"solid-start-sst"
|
|
47637
|
+
].includes(pkg))
|
|
47633
47638
|
return metadata3.version;
|
|
47634
47639
|
if (pkg === "constructs")
|
|
47635
47640
|
return metadata3.dependencies.constructs;
|