-
Notifications
You must be signed in to change notification settings - Fork 67
feat: adding rspress example #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Claude finished @zackarychapple's task —— View job PR Review Complete ✅feat: adding rspress example - This PR adds a new rspress (Rspack-based static site generator) example to the zephyr-examples repository with basic documentation, configuration, and Zephyr Cloud integration. Note: Writing 📋 Review Analysis Table
🔧 Code FixesFix 1: Asset Path Resolution (Critical) // examples/rspress/rspress.config.ts:9
- icon: 'docs/public/rspress-icon.png',
+ icon: '/rspress-icon.png', Fix 2: Secure Path Handling (High) // examples/rspress/rspress.config.ts:1-6
import * as path from 'path';
import {defineConfig} from 'rspress/config';
import {withZephyr} from "zephyr-rspack-plugin";
export default defineConfig({
- root: path.join(__dirname, 'docs'),
+ root: 'docs', Fix 3: Enhanced Package Scripts (Medium) // examples/rspress/package.json:5-8
"scripts": {
"dev": "rspress dev",
"build": "rspress build",
"preview": "rspress preview",
+ "clean": "rm -rf doc_build",
+ "type-check": "tsc --noEmit"
} Fix 4: Robust Plugin Integration (Medium) // examples/rspress/rspress.config.ts:19-26
builderConfig: {
tools: {
rspack(options) {
+ try {
return withZephyr()(options);
+ } catch (error) {
+ console.warn('Zephyr plugin failed, using default config:', error);
+ return options;
+ }
},
},
}, 🏗️ Architecture & DesignStrengths:
Concerns:
🔒 Security & Performance
Quality Score: 6/10Top 3 Next Steps:
Overall Assessment: This is a solid foundation for an rspress example, but the critical build failure must be resolved before merging. The integration approach is correct, but needs refinement for production readiness. |
No description provided.