JSPM

  • Created
  • Published
  • Downloads 465
  • Score
    100M100P100Q93500F
  • License MIT

Package Exports

  • @astro-aws/adapter
  • @astro-aws/adapter/lambda
  • @astro-aws/adapter/lambda.js

Readme

@astro-aws/adapter

An Astro adapter for building an SSR application and deploying it to AWS Lambda.

Install

# Using NPM
npx astro add @astro-aws/adapter

# Using Yarn
yarn astro add @astro-aws/adapter

# Using PNPM
pnpm astro add @astro-aws/adapter

Manually

  1. Install the package.
# Using NPM
npm install @astro-aws/adapter

# Using Yarn
yarn add @astro-aws/adapter

# Using PNPM
pnpm add @astro-aws/adapter
  1. Add the following to your astro.config.mjs file.
import { defineConfig } from "astro/config";
import astroAws from "@astro-aws/adapter";

export default defineConfig({
    output: "server",
    adapter: astroAws(),
});

Args

type Args = {
    binaryMediaTypes?: string[];
};

binaryMediaTypes?: string[];

Specifies what media types need to be base64 encoded.