Skip to content

Commit d00439e

Browse files
committed
chore: wip
1 parent a8d32c4 commit d00439e

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

storage/framework/core/cloud/src/cloud/deployment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class DeploymentStack {
2525

2626
new s3deploy.BucketDeployment(scope, 'Website', {
2727
sources: [s3deploy.Source.asset(this.websiteSource, {
28-
assetHash: websiteSourceHash,
28+
assetHash: websiteSourceHash(),
2929
assetHashType: AssetHashType.CUSTOM,
3030
})],
3131
destinationBucket: props.publicBucket,

storage/framework/core/utils/src/hash.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ export function originRequestFunctionHash() {
1414
}
1515
}
1616

17-
const docsSrc = [
18-
p.projectPath('docs'),
19-
p.projectPath('config/docs.ts'),
20-
]
17+
export function websiteSourceHash() {
18+
const docsSrc = [
19+
p.projectPath('docs'),
20+
p.projectPath('config/docs.ts'),
21+
]
2122

22-
const websiteSrc = [
23-
p.projectPath('resources/views'),
23+
const websiteSrc = [
24+
p.projectPath('resources/views'),
2425
// p.projectPath('config/app.ts'),
25-
]
26+
]
2627

27-
export const websiteSourceHash = config.app.docMode === true ? hashPaths(docsSrc) : hashPaths(websiteSrc)
28+
return config.app.docMode === true ? hashPaths(docsSrc) : hashPaths(websiteSrc)
29+
}

0 commit comments

Comments
 (0)