Skip to content

Conversation

RomanBobrovskiy
Copy link
Collaborator

Enable Public Assets Support and Optimize CloudFront Caching

Overview

This PR adds support for public assets handling, optimizes CloudFront caching configurations, and fixes DynamoDB tags validation issues.

Key Changes

1. Public Assets Support

  • Added automatic copying of public folder to standalone output
  • Implemented S3 upload functionality for public assets with configurable prefix
  • Added new CloudFront behavior pattern for public assets

2. CloudFront Optimizations

  • Enabled Brotli and Gzip compression for all cache policies
  • Added compression support for CloudFront behaviors
  • Introduced new dedicated cache policy for public assets
  • Updated cache policy configurations with compression settings

Configuration Updates

Added new configuration options in DeployConfig:

interface DeployConfig {
 cache: CacheConfig;
 publicAssets?: {
  prefix: string; // URL prefix for public assets
  ttl?: number; // Cache TTL in seconds
 }
}

@RomanBobrovskiy RomanBobrovskiy self-assigned this Feb 28, 2025
@RomanBobrovskiy RomanBobrovskiy merged commit 5baace9 into main Feb 28, 2025
1 check passed
@RomanBobrovskiy RomanBobrovskiy deleted the feat/PLATFORM-1978 branch February 28, 2025 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants