@common-web/astro-lambda-edge
v1.0.2
Published
This Adapter allows Astro to deploy your SSR site to Lambda@Edge Lambda target.
Downloads
49
Maintainers
Readme
Astro Lambda@Edge Adapter
This Adapter allows Astro to deploy your SSR site to Lambda@Edge Lambda target.
This is a remix of the Astro’s @astrojs/node.
It is purpose built for Lambda@Edge.
Usage
1. Install the adapter package
# Using NPM
npm install @common-web/astro-lambda-edge -D
# Using Yarn
yarn add @common-web/astro-lambda-edge -D
# Using PNPM
pnpm add @common-web/astro-lambda-edge -D
2. Add the following changes to astro.config.mjs
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
+import lambdaAdapter from '@common-web/astro-lambda-edge';
// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), react()],
+ output: 'server',
+ adapter: lambdaAdapter()
});