{"id":28486055,"url":"https://github.com/sst/astro-sst","last_synced_at":"2025-10-28T22:34:23.928Z","repository":{"id":268037864,"uuid":"903177748","full_name":"sst/astro-sst","owner":"sst","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-13T00:15:29.000Z","size":133,"stargazers_count":10,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-08T01:10:30.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-13T23:31:34.000Z","updated_at":"2025-05-13T00:15:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf0714bc-be8a-4cde-8cd1-1b1e139df07b","html_url":"https://github.com/sst/astro-sst","commit_stats":null,"previous_names":["sst/astro-sst"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/sst/astro-sst","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sst%2Fastro-sst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sst%2Fastro-sst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sst%2Fastro-sst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sst%2Fastro-sst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sst","download_url":"https://codeload.github.com/sst/astro-sst/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sst%2Fastro-sst/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263081017,"owners_count":23410794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-08T01:10:08.364Z","updated_at":"2025-10-28T22:34:23.794Z","avatar_url":"https://github.com/sst.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# astro-sst\n\nThis adapter allows Astro to deploy your SSR or static site to [AWS](https://aws.amazon.com/).\n\n## Installation\n\nAdd the AWS adapter to enable SST in your Astro project with the following `astro add` command. This will install the adapter and make the appropriate changes to your `astro.config.mjs` file in one step.\n\n```sh\n# Using NPM\nnpx astro add astro-sst\n# Using Yarn\nyarn astro add astro-sst\n# Using PNPM\npnpm astro add astro-sst\n```\n\nIf you prefer to install the adapter manually instead, complete the following two steps:\n\n1. Install the AWS adapter to your project's dependencies using your preferred package manager. If you're using npm or aren't sure, run this in the terminal:\n\n   ```bash\n     npm install astro-sst\n   ```\n\n1. Add two new lines to your `astro.config.mjs` project configuration file.\n\n   ```js title=\"astro.config.mjs\" ins={2, 5-6}\n   import { defineConfig } from \"astro/config\";\n   import aws from \"astro-sst\";\n\n   export default defineConfig({\n     output: \"server\",\n     adapter: aws(),\n   });\n   ```\n\n### Response Mode\n\nWhen utilizing `server` output, you can choose how responses are handled:\n\n- `buffer`: Responses are buffered and sent as a single response. (_default_)\n- `stream`: Responses are streamed as they are generated.\n\n```js title=\"astro.config.mjs\" ins={2, 5-6}\nimport { defineConfig } from \"astro/config\";\nimport aws from \"astro-sst\";\n\nexport default defineConfig({\n  output: \"server\",\n  adapter: aws({\n    responseMode: \"stream\",\n  }),\n});\n```\n\n## Upgrading from v2\n\nIf you're upgrading from v2 of this adapter, here are the key changes to be aware of:\n\n1. Remove the `deploymentStrategy` option from `astro.config.mjs`. Instead, the `output` setting in your Astro config is now used to determine the deployment type:\n   - If you previously used `deploymentStrategy: \"regional\"`, now set `output: \"server\"` in `astro.config.mjs`.\n   - If you previously used `deploymentStrategy: \"edge\"`, now set `output: \"server\"` in `astro.config.mjs`. Update SST to v3.9.25 or later. And configure [`regions`](https://sst.dev/docs/component/aws/astro#regions) on your Astro component.\n   - If you previously used `deploymentStrategy: \"static\"`, now set `output: \"static\"` in `astro.config.mjs`.\n\n2. Remove the `serverRoutes` option from `astro.config.mjs`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsst%2Fastro-sst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsst%2Fastro-sst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsst%2Fastro-sst/lists"}