Skip to content

Migrate StaticSite to v2 #85

@droguljic

Description

@droguljic

The StaticSite component uses the CloudFront distribution under the hood, creating the tight coupling. With this setup, flexibly is limited, both in reusing and tweaking the CloudFront distribution. As mentioned in the #73 the CloudFront should be a separate component (outlined in #79).

Logic of the StaticSite must be modularized to allow for easier composition and partial reuse if needed, thus providing flexibility for the consumers. In the end, StaticSite is a higher-order component and as such should rely on lower-order components instead of encapsulating them.

Key deliverables:

  • Update to standalone CloudFront component.
  • Move S3 related logic into separate component which can be used independently.
  • Implement integration tests.
  • If applicable, use builder pattern for smoother creation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions