File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
infra/pulumi-infra-deploy/StackBuilders/Website Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -137,10 +137,26 @@ private DomainsInfrastructure GenerateDomainEntries(CloudflarePagesApp webClient
137
137
Provider = provider
138
138
} ) ;
139
139
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
+
140
156
var record = new Cloudflare . Record ( "website-cname" , new Cloudflare . RecordArgs
141
157
{
142
- Name = GlobalConfig . WebClientInfraConfig . RootDomain ,
143
- Content = webClientInfra . PagesProject . Subdomain ,
158
+ Name = "svghelpers" ,
159
+ Content = webClientInfra . PagesProject . Domains . Apply ( x => x . First ( ) ) ,
144
160
ZoneId = GlobalConfig . WebClientInfraConfig . CloudflareZoneId ,
145
161
Proxied = true ,
146
162
AllowOverwrite = true ,
You can’t perform that action at this time.
0 commit comments