2024-41
đź’» Code & Creations
THE EPIC QUEST TO DEPLOY A WEBSITE: A Tale of Code and Chaos
-
Months of Tireless Effort: First, you’ve been grinding away on your personal site for weeks (maybe months?), crafting, tweaking, and perfecting the code into something truly worthy of the cyberpunk gods.
-
Repository Hijinks: Realizing the localÂ
website2
 repo wasn’t even on GitHub yet, you discovered a time capsule version of your site in an oldÂwebsite2
 repo, which is hilariously out of date. Cue existential sigh. -
Repo Renaming Adventures: We pulled off a classic repo shuffle, renaming the ancientÂ
website2
 toÂwebsite2-archive
 like it was a retired general, and then uploaded the new, shinyÂwebsite2
 repo to GitHub like a phoenix rising from the ashes. -
Netlify Shuffle: Time to delete the old Netlify setup. Why? Because we’re not just keeping things simple here. We nuked the old Netlify deployment and set up a fresh one with the codenameÂ
warm-crostata-e31905
—delicious and mysterious. -
NPMRC Shenanigans: Enter theÂ
.npmrc
 problem—your work settings decided to sabotage the build, pulling packages from some cursed corporate registry like a rogue AI gone mad. This resulted in a critical failure mid-build, and frustration levels skyrocketed. -
Backup Your Backup’s Backup: After a moment of controlled rage, we backed up theÂ
.npmrc
 file like responsible coders and restored the “normal” one fromÂnpmrc-normal-bak
. Why do we have all these backups? Only the code gods know. -
The Great Cache Purge: We hitÂ
npm cache clean --force
, effectively giving npm the middle finger and telling it to start fresh, because if you're gonna fix npm problems, might as well go nuclear. -
"Where the Hell is my Repo?": After all this meticulous cleaning, you tried toÂ
cd
 into the wrong directory—because, of course, your localÂwebsite2
 repo has decided to play hide-and-seek. A quick mental facepalm, and then back on track. -
Node Versioning Ritual: We prayed to the version gods, invoking theÂ
.nvmrc
 file to ensure Node v20.16.0 is active, like a secret spell whispered in a forgotten tongue. -
Vanquishing Node Modules: With a battle cry, we nukedÂ
node_modules
, that bloated directory of dependency hell, followed by removing the ghost of aÂyarn.lock
 that apparently never existed, but we tried twice anyway just for good measure. -
Yarn Rebirth: With our path cleared of wreckage, we summoned the powers ofÂ
yarn install
 to begin the next chapter—installing fresh dependencies from the land of npmjs.org. Would it succeed? Only time (and another cup of coffee) would tell.
One-time Support
Every bit matters. Thank you!