Skip to content

Commit 83d0e93

Browse files
committed
chore: wip
1 parent 458e34b commit 83d0e93

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.stacks/core/cloud/src/cloud.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-new */
12
import type { Construct } from 'constructs'
23
import type { StackProps } from 'aws-cdk-lib'
34
import {
@@ -169,60 +170,52 @@ export class StacksCloud extends Stack {
169170
})
170171

171172
// Create a Route53 record pointing to the CloudFront distribution
172-
// eslint-disable-next-line no-new
173173
new route53.ARecord(this, 'AliasRecord', {
174174
recordName: domainName,
175175
zone,
176176
target: route53.RecordTarget.fromAlias(new targets.CloudFrontTarget(distribution)),
177177
})
178178

179179
// Create a Route53 record pointing to the Docs CloudFront distribution
180-
// eslint-disable-next-line no-new
181180
new route53.ARecord(this, 'DocsAliasRecord', {
182181
recordName: `${app.subdomains.docs}.${domainName}`,
183182
zone,
184-
target: route53.RecordTarget.fromAlias(new targets.CloudFrontTarget(distribution)),
183+
target: route53.RecordTarget.fromAlias(new targets.CloudFrontTarget(docsDistribution)),
185184
})
186185

187-
// eslint-disable-next-line no-new
188186
new route53.CnameRecord(this, 'WwwCnameRecord', {
189187
zone,
190188
recordName: 'www',
191189
domainName,
192190
})
193191

194-
// eslint-disable-next-line no-new
195192
new s3deploy.BucketDeployment(this, 'DeployWebsite', {
196193
sources: [s3deploy.Source.asset('../../../storage/public')],
197194
destinationBucket: webBucket,
198195
distribution,
199196
distributionPaths: ['/*'],
200197
})
201198

202-
// eslint-disable-next-line no-new
203199
new s3deploy.BucketDeployment(this, 'DeployDocs', {
204200
sources: [s3deploy.Source.asset('../../../storage/app/docs')],
205-
destinationBucket: webBucket,
206-
distribution,
201+
destinationBucket: docsBucket,
202+
distribution: docsDistribution,
207203
distributionPaths: ['/*'],
208204
})
209205

210206
// Prints out the web endpoint to the terminal
211-
// eslint-disable-next-line no-new
212207
new Output(this, 'AppUrl', {
213208
value: `https://${domainName}`,
214209
description: 'The URL of the deployed application',
215210
})
216211

217212
// Prints out the web endpoint to the terminal
218-
// eslint-disable-next-line no-new
219213
new Output(this, 'DocsUrl', {
220214
value: `https://${app.subdomains.docs}.${app.url}`,
221215
description: 'The URL of the deployed documentation',
222216
})
223217

224218
// Prints out the web endpoint to the terminal
225-
// eslint-disable-next-line no-new
226219
new Output(this, 'VanityUrl', {
227220
value: `https://${distribution.domainName}`,
228221
description: 'The vanity URL of the deployed application',

0 commit comments

Comments
 (0)