Skip to main content

The CDK Construct Library of Astro

Project description

Astro Construct Library

---

cdk-constructs: Experimental

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

static

Lambda

lambda

Edge

edge

Static Mode

site = astrojsaws.StaticAstroSite(self, "AstroSite",
    static_dir="/path/to/dist"
)

Lambda Mode

site = astrojsaws.LambdaAstroSite(self, "AstroSite",
    server_entry="/path/to/dist/server/entry.mjs",
    static_dir="/path/to/dist/client"
)

Edge Mode

site = astrojsaws.EdgeAstroSite(self, "AstroSite",
    server_entry="/path/to/dist/server/entry.mjs",
    static_dir="/path/to/dist/client"
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

astrojs-aws.construct-0.0.5.tar.gz (53.6 kB view hashes)

Uploaded Source

Built Distribution

astrojs_aws.construct-0.0.5-py3-none-any.whl (52.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page