Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/five-jokes-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro-sst": minor
---

Added support for astro:env
5 changes: 0 additions & 5 deletions .changeset/unlucky-cameras-compete.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wet-bobcats-cover.md

This file was deleted.

Binary file modified bun.lockb
Binary file not shown.
7 changes: 7 additions & 0 deletions packages/astro-sst/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# astro-sst

## 3.1.4

### Patch Changes

- a934623: chore: update astro deprecation
- bf4694f: feat: allow hybrid output

## 3.1.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/astro-sst/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "astro-sst",
"description": "Adapter that allows Astro to deploy your site to AWS utilizing SST.",
"version": "3.1.3",
"version": "3.1.4",
"type": "module",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -43,6 +43,6 @@
"devDependencies": {
"@types/aws-lambda": "^8.10.146",
"@types/set-cookie-parser": "^2.4.10",
"astro": "^5.0.8"
"astro": "^5.16.4"
}
}
1 change: 1 addition & 0 deletions packages/astro-sst/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default function createIntegration(
staticOutput: "stable",
serverOutput: "stable",
sharpImageService: "stable",
envGetSecret: "stable",
},
});
},
Expand Down
5 changes: 4 additions & 1 deletion packages/astro-sst/src/entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ import type {
Context,
} from "aws-lambda";
import { NodeApp, applyPolyfills } from "astro/app/node";
import { setGetEnv } from "astro/env/setup";
import type { IntegrationConfig } from "./lib/build-meta";
import { InternalEvent, convertFrom, convertTo } from "./lib/event-mapper.js";
import { debug } from "./lib/logger.js";
import { ResponseStream } from "./lib/types";

setGetEnv((key) => process.env[key]);

type RequestHandler = (
event: APIGatewayProxyEventV2,
streamResponse: ResponseStream,
Expand Down Expand Up @@ -43,7 +46,7 @@ function createRequest(internalEvent: InternalEvent) {
headers: internalEvent.headers,
body: ["GET", "HEAD"].includes(internalEvent.method)
? undefined
: internalEvent.body,
: (internalEvent.body as BodyInit),
};
return new Request(requestUrl, requestProps);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/astro-sst/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"declaration": true,
"strict": true,
"moduleResolution": "node",
"moduleResolution": "bundler",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
Expand Down