Built using vanilla JavaScript, Sass, Parcel, and LocomotiveScroll.js
npm install
npm run buildOpen dist/index.html (or serve the dist folder) to verify changes before pushing.
Push to your connected branch; Amplify runs a clean build and deploys dist (see amplify.yml).
-
Confirm the build actually ran – In Amplify Console → your app → Build history: open the latest build and check the logs. You should see
npm run buildand Parcel output (e.g. "Built in X ms"). If the build was skipped or failed earlier, the deploy may be serving a previous artifact. -
Check which branch and URL – Ensure you’re viewing the production URL for the branch that’s connected to the main app (e.g.
mainormaster), not a preview URL for another branch. -
Force CDN/browser to fetch fresh HTML – This repo includes
customHttp.ymlsoindex.htmland/are served withCache-Control: no-cache. After pushing it, redeploy once. Then try:- Hard refresh: Ctrl+Shift+R (Windows) or Cmd+Shift+R (Mac).
- Or open the site in an Incognito/Private window.
-
Manual CloudFront invalidation – In AWS Console → CloudFront (or Amplify → Hosting → view the linked CloudFront distribution): create an invalidation with path
/*to clear edge cache. Then reload the site. -
Skew protection – In Amplify Console → Hosting → Custom headers (or cache settings): if "Skew protection" or similar is available, ensure it’s enabled so users get a consistent, up-to-date set of files.
