Skip to content

Commit 055e949

Browse files
committed
Set record for website cname
1 parent 37b2789 commit 055e949

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

infra/pulumi-infra-deploy/StackBuilders/Website/WebsiteStackBuilder.cs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,26 @@ private DomainsInfrastructure GenerateDomainEntries(CloudflarePagesApp webClient
137137
Provider = provider
138138
});
139139

140+
//var record = new Cloudflare.Record("website-cname", new Cloudflare.RecordArgs
141+
//{
142+
// Name = GlobalConfig.WebClientInfraConfig.RootDomain,
143+
// Content = webClientInfra.PagesProject.Subdomain,
144+
// ZoneId = GlobalConfig.WebClientInfraConfig.CloudflareZoneId,
145+
// Proxied = true,
146+
// AllowOverwrite = true,
147+
// Type = "CNAME",
148+
// Ttl = 1,//Has to be set to 1 because this is proxied
149+
//}, new CustomResourceOptions
150+
//{
151+
// Provider = provider,
152+
// //Need to register the Pages Domain before making the CNAME record, otherwise it will fail
153+
// DependsOn = new[] { pagesDomain }
154+
//});
155+
140156
var record = new Cloudflare.Record("website-cname", new Cloudflare.RecordArgs
141157
{
142-
Name = GlobalConfig.WebClientInfraConfig.RootDomain,
143-
Content = webClientInfra.PagesProject.Subdomain,
158+
Name = "svghelpers",
159+
Content = webClientInfra.PagesProject.Domains.Apply(x => x.First()),
144160
ZoneId = GlobalConfig.WebClientInfraConfig.CloudflareZoneId,
145161
Proxied = true,
146162
AllowOverwrite = true,

0 commit comments

Comments
 (0)