@common-web/astro-lambda-edge

1.0.2 • Public • Published

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()
});

Package Sidebar

Install

npm i @common-web/astro-lambda-edge

Weekly Downloads

90

Version

1.0.2

License

MIT

Unpacked Size

1.08 MB

Total Files

19

Last publish

Collaborators

  • jareechang