Skip to content

Commit 3b4043b

Browse files
committed
chore: wip
1 parent c10156b commit 3b4043b

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ export class StacksCloud extends Stack {
268268

269269
manageCdn() {
270270
const originAccessIdentity = new cloudfront.OriginAccessIdentity(this, 'OAI')
271+
271272
const cdnCachePolicy = new cloudfront.CachePolicy(this, 'cdnCachePolicy', {
272273
comment: 'Custom Stacks CDN Cache Policy',
273274
cachePolicyName: 'cdnCachePolicy',
@@ -276,6 +277,7 @@ export class StacksCloud extends Stack {
276277
maxTtl: cloud.cdn?.maxTtl ? Duration.seconds(cloud.cdn.maxTtl) : undefined,
277278
cookieBehavior: this.getCookieBehavior(cloud.cdn?.cookieBehavior),
278279
})
280+
279281
const cdn = new cloudfront.Distribution(this, 'Distribution', {
280282
domainNames: [this.domain],
281283
defaultRootObject: 'index.html',
@@ -301,10 +303,7 @@ export class StacksCloud extends Stack {
301303
cachePolicy: this.cdnCachePolicy,
302304
},
303305

304-
additionalBehaviors: this.generateAdditionalBehaviors({
305-
docsBucket: this.storage.privateBucket,
306-
originAccessIdentity: this.originAccessIdentity,
307-
}),
306+
additionalBehaviors: this.generateAdditionalBehaviors(),
308307
})
309308

310309
return { cdn, originAccessIdentity, cdnCachePolicy }
@@ -361,13 +360,18 @@ export class StacksCloud extends Stack {
361360
description: 'The URL of the deployed application',
362361
})
363362

364-
new Output(this, 'VanityUrl', {
363+
new Output(this, 'AppVanityUrl', {
365364
value: this.vanityUrl,
366365
description: 'The vanity URL of the deployed application',
367366
})
368367

368+
new Output(this, 'ApiUrl', {
369+
value: `https://${this.apiDomain}`,
370+
description: 'The URL of the deployed application',
371+
})
372+
369373
if (this.apiVanityUrl) {
370-
new Output(this, 'ServerVanityUrl', {
374+
new Output(this, 'ApiVanityUrl', {
371375
value: this.apiVanityUrl,
372376
description: 'The vanity URL of the deployed Stacks server.',
373377
})

config/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ export default {
2323
locale: 'en',
2424
fallbackLocale: 'en',
2525
cipher: 'aes-256-cbc',
26-
docMode: true,
26+
docMode: true, // instead of example.com/docs, use example.com as main entry point for docs
2727
} satisfies AppConfig

0 commit comments

Comments
 (0)