astro-sst
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

astro-sst

This adapter allows Astro to deploy your SSR site to AWS.

Installation

Add the AWS adapter to enable SSR 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.

# Using NPM
npx astro add astro-sst
# Using Yarn
yarn astro add astro-sst
# Using PNPM
pnpm astro add astro-sst

If you prefer to install the adapter manually instead, complete the following two steps:

  1. 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:

      npm install astro-sst
  2. Add two new lines to your astro.config.mjs project configuration file.

    import { defineConfig } from "astro/config";
    import aws from "astro-sst/lambda";
    
    export default defineConfig({
      output: "server",
      adapter: aws(),
    });

Targets

You can deploy to different targets:

You can change where to target by changing the import:

import aws from "astro-sst/lambda";
import aws from "astro-sst/edge";

Install

npm i astro-sst

DownloadsWeekly Downloads

2,061

Version

2.3.0

License

MIT

Unpacked Size

21.1 kB

Total Files

21

Last publish

Collaborators

  • thdxr
  • fanjie