diff --git a/.cursor/rules/asset-hashing-csp.mdc b/.cursor/rules/asset-hashing-csp.mdc deleted file mode 100644 index 06a31c9..0000000 --- a/.cursor/rules/asset-hashing-csp.mdc +++ /dev/null @@ -1,23 +0,0 @@ ---- -description: -globs: *.js,*.css -alwaysApply: false ---- -# Asset Hashing and CSP Update Rule - -This rule ensures that all `.js` and `.css` assets are properly hashed and their integrity hashes are updated in `index.html` and added to the Content Security Policy (CSP) in the `Caddyfile` during every build and push process. - -## Process to Follow - -1. **Hash Calculation**: Before building the Docker image, calculate the SHA256 hash for each `.js` and `.css` file in the `docker/resume/` directory using a command like `shasum -a 256 filename | awk '{print $1}' | xxd -r -p | base64`. -2. **Update index.html**: Update the `integrity` attribute in the ` + +
+ + + + +${mainContent} + + + + +