File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export class DeploymentStack {
25
25
26
26
new s3deploy . BucketDeployment ( scope , 'Website' , {
27
27
sources : [ s3deploy . Source . asset ( this . websiteSource , {
28
- assetHash : websiteSourceHash ,
28
+ assetHash : websiteSourceHash ( ) ,
29
29
assetHashType : AssetHashType . CUSTOM ,
30
30
} ) ] ,
31
31
destinationBucket : props . publicBucket ,
Original file line number Diff line number Diff line change @@ -14,14 +14,16 @@ export function originRequestFunctionHash() {
14
14
}
15
15
}
16
16
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
+ ]
21
22
22
- const websiteSrc = [
23
- p . projectPath ( 'resources/views' ) ,
23
+ const websiteSrc = [
24
+ p . projectPath ( 'resources/views' ) ,
24
25
// p.projectPath('config/app.ts'),
25
- ]
26
+ ]
26
27
27
- export const websiteSourceHash = config . app . docMode === true ? hashPaths ( docsSrc ) : hashPaths ( websiteSrc )
28
+ return config . app . docMode === true ? hashPaths ( docsSrc ) : hashPaths ( websiteSrc )
29
+ }
You can’t perform that action at this time.
0 commit comments