Package Exports
- @astrojs-aws/construct
- @astrojs-aws/construct/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@astrojs-aws/construct) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Astro Construct Library
The APIs of higher level constructs in this module are experimental and under active development. They are subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model and breaking changes will be announced in the release notes. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
Introduction
Astro is the all-in-one web framework designed for speed. This library is supported modes, static
, lambda
and edge
, to deploy astro website to AWS.
Architecture
Static
Lambda
Edge
Static Mode
const site = new astrojsaws.StaticAstroSite(this, "AstroSite", {
staticDir: "/path/to/dist",
})
Lambda Mode
const site = new astrojsaws.LambdaAstroSite(this, "AstroSite", {
serverEntry: "/path/to/dist/server/entry.mjs",
staticDir: "/path/to/dist/client",
})
Edge Mode
const site = new astrojsaws.EdgeAstroSite(this, "AstroSite", {
serverEntry: "/path/to/dist/server/entry.mjs",
staticDir: "/path/to/dist/client",
})