diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md index 38ecdb0..140d7eb 100644 --- a/DEPLOYMENT.md +++ b/DEPLOYMENT.md @@ -9,7 +9,9 @@ - Output directory: `dist` - Production branch: `main` - Automatic Production deployments: disabled -- Custom domains / DNS: none +- GitHub Pages environment URL: `http://ocodejs.co/docs.rtf/` (from the successful Pages deployment log). +- The frontend detects the `/docs.rtf` base path on `ocodejs.co`; Cloudflare Preview remains rooted at `/`. +- Custom domains / DNS: none changed by this project. ## Build output @@ -18,3 +20,5 @@ The build validates `index.html` and `studio.html`, then publishes only those tw ## Product boundaries This repository currently contains a static frontend prototype. Authentication, contact submission, student data, course purchases, and checkout are demonstrations only. No real payment or account operation is performed. Production launch requires backend integration, security review, privacy/legal review, and explicit production approval. + +The `fix/github-pages-subpath-routing` branch is also included in Preview builds so the `/docs.rtf` path fix can be tested before any further GitHub Pages release. diff --git a/README-IMPLEMENTATION.md b/README-IMPLEMENTATION.md index 74c732c..2066f36 100644 --- a/README-IMPLEMENTATION.md +++ b/README-IMPLEMENTATION.md @@ -20,7 +20,7 @@ npx serve dist - Build Cloudflare chỉ xuất bản `index.html`, `studio.html` và metadata; Pages tự động fallback về `index.html` cho route SPA khi không có `404.html`. GitHub Pages workflow tạo riêng `404.html` sau bước build. - `_redirects` hỗ trợ refresh các SPA route; `404.html` dùng app shell để router xử lý route trực tiếp. - `_headers` ngăn index bản preview. -- GitHub Pages dùng workflow `.github/workflows/pages.yml` làm pipeline tự động duy nhất khi có thay đổi trên `main`. Các workflow `static.yml`, `jekyll-gh-pages.yml` và `jekyll.yml` là legacy/manual-only để tránh nhiều workflow ghi đè cùng Pages deployment. +- GitHub Pages dùng workflow `.github/workflows/pages.yml` làm pipeline tự động duy nhất khi có thay đổi trên `main`. Frontend tự nhận diện base path `/docs.rtf` trên `ocodejs.co`, còn Cloudflare Preview chạy ở root. Các workflow `static.yml`, `jekyll-gh-pages.yml` và `jekyll.yml` là legacy/manual-only để tránh nhiều workflow ghi đè cùng Pages deployment. - Không tự bật domain riêng hoặc Production trong cấu hình staging. ## Phạm vi hiện tại diff --git a/index.html b/index.html index 2c5e83d..b86943a 100644 --- a/index.html +++ b/index.html @@ -66,17 +66,19 @@ color:#08090b !important; border-color:#e9edf5 !important; } -