0.6.0 • Published 2 months ago
@astro-aws/adapter v0.6.0
@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
# Using Bun
bun x astro add @astro-aws/adapter
Manually
- Install the package.
# Using NPM
npm install -D @astro-aws/adapter
# Using Yarn
yarn add -D @astro-aws/adapter
# Using PNPM
pnpm add -D @astro-aws/adapter
# Using Bun
bun add -D @astro-aws/adapter
- 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(),
})
SSR Usage
- Install the package.
# Using NPM
npm install -D @astro-aws/adapter
# Using Yarn
yarn add -D @astro-aws/adapter
# Using PNPM
pnpm add -D @astro-aws/adapter
# Using Bun
bun add -D @astro-aws/adapter
- 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({
mode: "ssr",
}),
})
SSR Stream Usage
- Install the package.
# Using NPM
npm install -D @astro-aws/adapter
# Using Yarn
yarn add -D @astro-aws/adapter
# Using PNPM
pnpm add -D @astro-aws/adapter
# Using Bun
bun add -D @astro-aws/adapter
- 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({
mode: "ssr-stream",
}),
})
Edge Usage
- Install the package.
# Using NPM
npm install -D @astro-aws/adapter
# Using Yarn
yarn add -D @astro-aws/adapter
# Using PNPM
pnpm add -D @astro-aws/adapter
# Using Bun
bun add -D @astro-aws/adapter
- 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({
mode: "edge",
}),
})
Example
0.6.0
2 months ago
0.5.0
5 months ago
0.4.0
8 months ago
0.3.0
1 year ago
0.2.0
1 year ago
0.1.0-next.8
1 year ago
0.0.6-next.7
1 year ago
0.0.6-next.6
1 year ago
0.0.6-next.5
1 year ago
0.0.6-next.4
1 year ago
0.0.6-next.3
1 year ago
0.0.6-next.2
1 year ago
0.0.6-next.1
1 year ago
0.0.6-next.0
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago