Test/pr preview 3#164
Conversation
- Migrate production deploy from actions/deploy-pages API to gh-pages branch via peaceiris/actions-gh-pages (preserves pr-preview/ directories) - Add new preview-pages.yml workflow for automated PR previews - Builds frontend with correct base path for subdirectory routing - Posts/updates PR comment with live preview URL - Cleans up preview directory when PR is closed or merged - Fix 12+ hardcoded absolute image paths (src='/...') to use import.meta.env.BASE_URL for correct resolution in subdirectories - Both workflows trigger only on frontend/** changes - CNAME file automatically maintained by peaceiris action - Shared concurrency group prevents gh-pages push race conditions
- deploy.yml triggers on 'development' instead of 'main' - Uses dynamic repo name for base path (works on any fork) - Removed CNAME (fork has no custom domain) - Added workflow files to paths trigger for initial testing - PR previews use correct base: /Chainvoice/pr-preview/pr-N/
…ectories - Remove explicit basename from HashRouter in App.jsx (HashRouter does not need it and it broke root matching) - Change absolute paths to relative in manifest.json - Use %VITE_BASE_URL% in index.html for correct asset resolution
- Split monolithic 8MB+ bundle into vendor-specific chunks (mui, lit, web3, pdf, animation) - Enables parallel downloading over HTTP/2, significantly speeding up PR previews and production loads
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (14)
WalkthroughThis PR reconfigures frontend deployment and asset handling to support serving from a variable base path. The main deployment workflow switches from GitHub Pages artifacts to direct ChangesSubpath deployment and asset path migration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Biome (2.4.16)frontend/src/index.cssFile contains syntax errors that prevent linting: Line 114: Tailwind-specific syntax is disabled.; Line 117: Tailwind-specific syntax is disabled. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Addressed Issues:
Fixes #(TODO:issue number)
Screenshots/Recordings:
TODO: If applicable, add screenshots or recordings that demonstrate the interface before and after the changes.
Additional Notes:
AI Usage Disclosure:
We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact. AI slop is strongly discouraged and may lead to banning and blocking. Do not spam our repos with AI slop.
Check one of the checkboxes below:
I have used the following AI models and tools: TODO
Checklist
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Performance