Skip to content

Create CloudFront component #79

@droguljic

Description

@droguljic

Both the StaticSite and NuxtSSR components currently instantiate their own CloudFront distributions internally.
This design tightly couples CloudFront configuration with these components, limiting flexibility. As a result, it becomes non-trivial to add multiple origins to the same CloudFront distribution.

To resolve the above paint point, a dedicated CloudFront component should be created that will define a clear interface for configuring various options, such as origins, caching policies, etc., allowing multiple consumers to share a single distribution.

Key deliverables:

  • Create standalone CloudFront component.
  • Migrate provisioning logic currently inside StaticSite and NuxtSSR to the new component.
  • Support multiple origins and caching strategies.
  • Implement integration tests.
  • If applicable, use builder pattern for smoother creation.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions