Skip to content

Commit 0db635f

Browse files
Copilot0xrinegade
andcommitted
Fix Netlify deployment by configuring npm to use HTTPS instead of SSH for GitHub repositories
Co-authored-by: 0xrinegade <[email protected]>
1 parent 7e86d83 commit 0db635f

File tree

2 files changed

+2790
-2922
lines changed

2 files changed

+2790
-2922
lines changed

.npmrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Force npm/yarn to use HTTPS instead of SSH for GitHub repositories
2+
# This fixes Netlify deployment issues where SSH keys are not available
3+
git-ssh-url = "https://github.com/"
4+
git-https-url = "https://github.com/"
5+
6+
# Rewrite git+ssh URLs to use HTTPS
7+
; This ensures compatibility with build environments like Netlify
8+
; that don't have SSH keys configured for GitHub access

0 commit comments

Comments
 (0)