sst 2.37.2 → 2.38.1

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.
@@ -164,6 +164,7 @@ export class AstroSite extends SsrSite {
164
164
  allowedMethods: AllowedMethods.ALLOW_GET_HEAD_OPTIONS,
165
165
  }, ...buildMeta.serverRoutes?.map((route) => ({
166
166
  cacheType: "server",
167
+ cfFunction: "serverCfFunction",
167
168
  pattern: route,
168
169
  origin: "regionalServer",
169
170
  })));
@@ -27,6 +27,16 @@ export interface ServiceProps {
27
27
  * @default "."
28
28
  */
29
29
  path?: string;
30
+ /**
31
+ * The port number on the container.
32
+ * @example
33
+ * ```js
34
+ * {
35
+ * port: 8000,
36
+ * }
37
+ *```
38
+ */
39
+ port: number;
30
40
  /**
31
41
  * Path to Dockerfile relative to the defined "path".
32
42
  * @default "Dockerfile"
@@ -76,17 +86,6 @@ export interface ServiceProps {
76
86
  * ```
77
87
  */
78
88
  storage?: `${number} GB`;
79
- /**
80
- * The port number on the container.
81
- * @default 3000
82
- * @example
83
- * ```js
84
- * {
85
- * port: 8000,
86
- * }
87
- *```
88
- */
89
- port?: number;
90
89
  scaling?: {
91
90
  /**
92
91
  * The minimum capacity for the cluster.
@@ -385,7 +384,6 @@ type ServiceNormalizedProps = ServiceProps & {
385
384
  path: Exclude<ServiceProps["path"], undefined>;
386
385
  memory: Exclude<ServiceProps["memory"], undefined>;
387
386
  storage: Exclude<ServiceProps["storage"], undefined>;
388
- port: Exclude<ServiceProps["port"], undefined>;
389
387
  logRetention: Exclude<ServiceProps["logRetention"], undefined>;
390
388
  };
391
389
  /**
@@ -411,7 +409,7 @@ export declare class Service extends Construct implements SSTConstruct {
411
409
  private service?;
412
410
  private distribution?;
413
411
  private alb?;
414
- constructor(scope: Construct, id: string, props?: ServiceProps);
412
+ constructor(scope: Construct, id: string, props: ServiceProps);
415
413
  /**
416
414
  * The CloudFront URL of the website.
417
415
  */
@@ -160,7 +160,6 @@ export class Service extends Construct {
160
160
  cpu: props?.cpu || "0.25 vCPU",
161
161
  memory: props?.memory || "0.5 GB",
162
162
  storage: props?.storage || "20 GB",
163
- port: props?.port || 3000,
164
163
  logRetention: props?.logRetention || "infinite",
165
164
  ...props,
166
165
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.37.2",
4
+ "version": "2.38.1",
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.37.2",
123
+ "astro-sst": "2.38.1",
124
124
  "async": "^3.2.4",
125
125
  "tsx": "^3.12.1",
126
126
  "typescript": "^5.2.2",