sst 2.38.0 → 2.38.2

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,6 +82,10 @@ export class AstroSite extends SsrSite {
82
82
  AstroSite.getCFRoutingFunction(buildMeta),
83
83
  ],
84
84
  },
85
+ serverCfFunctionHostOnly: {
86
+ constructId: "CloudFrontFunction",
87
+ injections: [this.useCloudFrontFunctionHostHeaderInjection()],
88
+ },
85
89
  },
86
90
  origins: {
87
91
  staticsServer: {
@@ -164,6 +168,7 @@ export class AstroSite extends SsrSite {
164
168
  allowedMethods: AllowedMethods.ALLOW_GET_HEAD_OPTIONS,
165
169
  }, ...buildMeta.serverRoutes?.map((route) => ({
166
170
  cacheType: "server",
171
+ cfFunction: "serverCfFunctionHostOnly",
167
172
  pattern: route,
168
173
  origin: "regionalServer",
169
174
  })));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.38.0",
4
+ "version": "2.38.2",
5
5
  "bin": {
6
6
  "sst": "cli/sst.js"
7
7
  },
@@ -120,7 +120,7 @@
120
120
  "@types/ws": "^8.5.3",
121
121
  "@types/yargs": "^17.0.13",
122
122
  "archiver": "^5.3.1",
123
- "astro-sst": "2.38.0",
123
+ "astro-sst": "2.38.2",
124
124
  "async": "^3.2.4",
125
125
  "tsx": "^3.12.1",
126
126
  "typescript": "^5.2.2",