mirror of
https://github.com/kccleoc/seedpgp-web.git
synced 2026-03-07 09:57:50 +08:00
docs: Remove GitHub Pages deployment instructions from GEMINI.md
This commit is contained in:
18
GEMINI.md
18
GEMINI.md
@@ -12,8 +12,7 @@
|
|||||||
1. **Security-first**: Never persist secrets (mnemonic/passphrase/private keys) to localStorage/sessionStorage/IndexedDB
|
1. **Security-first**: Never persist secrets (mnemonic/passphrase/private keys) to localStorage/sessionStorage/IndexedDB
|
||||||
2. **Small PRs**: Max 1-5 files per feature; propose plan before coding
|
2. **Small PRs**: Max 1-5 files per feature; propose plan before coding
|
||||||
3. **Client-side only**: No backend; all crypto runs in browser (Web Crypto API + OpenPGP.js)
|
3. **Client-side only**: No backend; all crypto runs in browser (Web Crypto API + OpenPGP.js)
|
||||||
4. **GitHub Pages deploy**: Base path `/seedpgp-web-app/` configured in vite.config.ts
|
4. **Honest security claims**: Don't overclaim what client-side JS can guarantee
|
||||||
5. **Honest security claims**: Don't overclaim what client-side JS can guarantee
|
|
||||||
|
|
||||||
## Non-Negotiables
|
## Non-Negotiables
|
||||||
|
|
||||||
@@ -30,7 +29,7 @@
|
|||||||
### Entry Points
|
### Entry Points
|
||||||
|
|
||||||
- `src/main.tsx` → `src/App.tsx` (main application)
|
- `src/main.tsx` → `src/App.tsx` (main application)
|
||||||
- Build output: `dist/` (separate git repo for GitHub Pages deployment)
|
- Build output: `dist/`
|
||||||
|
|
||||||
### Directory Structure
|
### Directory Structure
|
||||||
|
|
||||||
@@ -125,7 +124,6 @@ bun run dev # Dev server (localhost:5173)
|
|||||||
bun run build # Build to dist/
|
bun run build # Build to dist/
|
||||||
bun run typecheck # TypeScript validation (tsc --noEmit)
|
bun run typecheck # TypeScript validation (tsc --noEmit)
|
||||||
bun run preview # Preview production build
|
bun run preview # Preview production build
|
||||||
./scripts/deploy.sh v1.x.x # Build + push to public repo
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Deployment Process
|
### Deployment Process
|
||||||
@@ -140,14 +138,6 @@ bun run preview # Preview production build
|
|||||||
3. **Output directory:** `dist/`
|
3. **Output directory:** `dist/`
|
||||||
4. **Security headers:** Automatically enforced via `public/_headers`
|
4. **Security headers:** Automatically enforced via `public/_headers`
|
||||||
|
|
||||||
### Benefits Over GitHub Pages
|
|
||||||
|
|
||||||
- ✅ Real CSP header enforcement (blocks network requests at browser level)
|
|
||||||
- ✅ Custom security headers (X-Frame-Options, X-Content-Type-Options)
|
|
||||||
- ✅ Auto-deploy on push to main
|
|
||||||
- ✅ Build preview for PRs
|
|
||||||
- ✅ Better performance (global CDN)
|
|
||||||
|
|
||||||
### Git Workflow
|
### Git Workflow
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -167,9 +157,6 @@ git push origin main --tags
|
|||||||
# Then commit the README update:
|
# Then commit the README update:
|
||||||
git add README.md
|
git add README.md
|
||||||
git commit -m "docs: update README for v1.x.x"
|
git commit -m "docs: update README for v1.x.x"
|
||||||
|
|
||||||
# Deploy to GitHub Pages
|
|
||||||
./scripts/deploy.sh v1.x.x
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -282,7 +269,6 @@ Before implementing any feature:
|
|||||||
### Security Claims
|
### Security Claims
|
||||||
|
|
||||||
- Don't claim "RAM is wiped" (JavaScript can't force GC)
|
- Don't claim "RAM is wiped" (JavaScript can't force GC)
|
||||||
- Don't claim "offline mode" without real CSP headers (GitHub Pages can't set custom headers)
|
|
||||||
- Don't promise protection against active browser compromise (XSS/extensions)
|
- Don't promise protection against active browser compromise (XSS/extensions)
|
||||||
|
|
||||||
### Storage
|
### Storage
|
||||||
|
|||||||
Reference in New Issue
Block a user