Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<VersionPrefix>2.0.1</VersionPrefix>
<VersionPrefix>2.1.0-preview</VersionPrefix>
<!-- SPDX license identifier for MIT -->
<PackageLicenseExpression>MIT</PackageLicenseExpression>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Amazon.CDK.Lib" Version="2.213.0" />
<PackageReference Include="Amazon.CDK.Lib" Version="2.220.0" />
<PackageReference Include="Amazon.JSII.Runtime" Version="1.116.0" />
<PackageReference Include="Constructs" Version="10.4.2" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\docs\assets\icon.png" Pack="true" PackagePath="" Visible="False" />
Expand Down
6 changes: 5 additions & 1 deletion src/LayeredCraft.Cdk.Constructs/StaticSiteConstruct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,16 @@ public StaticSiteConstruct(Construct scope, string id, IStaticSiteConstructProps
});
}

var distRef = Distribution.FromDistributionAttributes(this, "DistRef", new DistributionAttributes {
DistributionId = distribution.DistributionId,
DomainName = distribution.DomainName
});
// Deploy static assets to S3 bucket and invalidate CloudFront cache
_ = new BucketDeployment(this, $"{id}-deployment", new BucketDeploymentProps
{
Sources = [Source.Asset(props.AssetPath)],
DestinationBucket = siteBucket,
Distribution = distribution,
Distribution = distRef,
Comment thread
ncipollina marked this conversation as resolved.
DistributionPaths = ["/*"],
MemoryLimit = 1024
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
<PackageReference Include="AutoFixture" Version="4.18.1"/>
<PackageReference Include="AutoFixture.AutoNSubstitute" Version="4.18.1"/>
<PackageReference Include="AutoFixture.Xunit3" Version="4.19.0"/>
<PackageReference Include="AwesomeAssertions" Version="9.1.0" />
<PackageReference Include="AwesomeAssertions" Version="9.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1"/>
<PackageReference Include="NSubstitute" Version="5.3.0"/>
<PackageReference Include="xunit.v3" Version="3.0.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4">
<PackageReference Include="xunit.v3" Version="3.1.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down