Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Mar 6, 2024
1 parent a8d32c4 commit d00439e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion storage/framework/core/cloud/src/cloud/deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class DeploymentStack {

new s3deploy.BucketDeployment(scope, 'Website', {
sources: [s3deploy.Source.asset(this.websiteSource, {
assetHash: websiteSourceHash,
assetHash: websiteSourceHash(),
assetHashType: AssetHashType.CUSTOM,
})],
destinationBucket: props.publicBucket,
Expand Down
18 changes: 10 additions & 8 deletions storage/framework/core/utils/src/hash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ export function originRequestFunctionHash() {
}
}

const docsSrc = [
p.projectPath('docs'),
p.projectPath('config/docs.ts'),
]
export function websiteSourceHash() {
const docsSrc = [
p.projectPath('docs'),
p.projectPath('config/docs.ts'),
]

const websiteSrc = [
p.projectPath('resources/views'),
const websiteSrc = [
p.projectPath('resources/views'),
// p.projectPath('config/app.ts'),
]
]

export const websiteSourceHash = config.app.docMode === true ? hashPaths(docsSrc) : hashPaths(websiteSrc)
return config.app.docMode === true ? hashPaths(docsSrc) : hashPaths(websiteSrc)
}

0 comments on commit d00439e

Please sign in to comment.