✅ Convert SVG to PNG (see SPLASH_ASSETS_GUIDE.md)
- Convert
assets/icon.svg→assets/default-icon.png(512x512) - Convert
assets/splash.svg→assets/default-splash.png(1200x630) - Verify file sizes are under 1MB each
- All features working on desktop
- Mobile limitations documented
- Error handling in place
- Console logs removed (or minimal)
- No sensitive data in code
- Upload documents (desktop)
- View documents (mobile & desktop)
- Delete documents
- Export functionality
- Open full size images
- Test with different image sizes
- Test with 20 documents (limit)
- Increment version in
package.json(currently 0.2.4) - Consider using semantic versioning for production (e.g., 1.0.0)
- README.md updated
- USER_GUIDE.md created
- LIMITATIONS.md documented
- Add screenshots to README (optional)
npm run buildThis compiles both client and server code to the dist folder.
npm run deployOr manually:
npx devvit uploadWhat this does:
- Uploads your app to Reddit's servers
- Creates a new version
- Makes it available for installation (private)
Output:
✓ App uploaded successfully
Version: 0.2.4
App ID: ocrdocs
- Install on your test subreddit
- Create a post using the moderator menu
- Test all functionality
- Verify splash screen appears correctly
- Test on both desktop and mobile
If you want to make your app public:
npm run launchOr manually:
npm run build
npm run deploy
npx devvit publishWhat this does:
- Submits app for Reddit review
- Required for subreddits with >200 members
- Review typically takes 1-3 days
Use this format: MAJOR.MINOR.PATCH
Examples:
1.0.0- First production release1.0.1- Bug fix1.1.0- New feature (backwards compatible)2.0.0- Breaking changes
Edit package.json:
{
"version": "1.0.0"
}- Go to your subreddit
- Mod Tools → Apps
- Find "Document Manager" (ocrdocs)
- Click "Install"
- Grant required permissions
After publishing:
- Share app link:
https://developers.reddit.com/apps/ocrdocs - Moderators can install from Reddit's app directory
- Or search "Document Manager" in app marketplace
- Check Reddit Developer Portal for analytics
- Monitor error logs:
npx devvit logs r/your_subreddit - Watch for user feedback
# Real-time logs
npx devvit logs r/ocrdocs_dev
# Last 15 minutes
npx devvit logs r/ocrdocs_dev --since 15m
# Specific app
npx devvit logs r/ocrdocs_dev --app ocrdocsWhen you deploy a new version:
- Run
npm run deploy - Existing installations auto-update
- No need to reinstall
If something goes wrong:
# List versions
npx devvit versions
# Rollback to previous version
npx devvit rollback <version>- Convert splash assets to PNG
- Test on desktop browser
- Test on mobile browser
- Update version to 1.0.0
- Remove any test/debug code
- Verify .env is in .gitignore
# 1. Build
npm run build
# 2. Deploy
npm run deploy
# 3. Test on your subreddit
# Visit: https://reddit.com/r/ocrdocs_dev
# 4. If ready for public, publish
npm run launch- Test installation on subreddit
- Create test post
- Upload test document
- Verify splash screen
- Test on mobile
- Monitor logs for errors
Solution: You cannot change the app name. It's permanently "ocrdocs"
Solution: Increment version in package.json
Solution:
# Clean and rebuild
rm -rf dist node_modules
npm install
npm run buildSolution:
# Re-authenticate
npx devvit login
npm run deploySolution:
- Verify PNG files exist in
assets/folder - Check file sizes (must be under 1MB)
- Create a new post (old posts keep old splash)
- App must be functional
- No malicious code
- Follows Reddit's content policy
- Clear description of functionality
npm run launch- Submit via
npx devvit publish - Reddit reviews (1-3 days)
- Email notification when approved
- App appears in marketplace
- Code quality
- Security
- User experience
- Content policy compliance
- Performance
# 1. Make changes
# 2. Update version
# 3. Build and deploy
npm run build
npm run deploy# Check logs
npx devvit logs r/your_subreddit --since 1h
# Check installations
# Visit: https://developers.reddit.com/apps/ocrdocs- Devvit Documentation
- r/Devvit - Community support
- Discord - Developer chat
- Check documentation
- Search r/Devvit
- Ask in Discord
- Contact Reddit support
OCR_SPACE_API_KEY- Not used (OCR disabled)DEVVIT_SUBREDDIT- Test subreddit
No environment variables needed! Everything runs on Devvit's infrastructure.
# 1. Final build
npm run build
# 2. Deploy to production
npm run deploy
# 3. Test thoroughly
# Visit your subreddit and test the app
# 4. If everything works, publish
npm run launchYour app is now live on Reddit! 🎉
Monitor logs and user feedback to ensure smooth operation.
# Development
npm run dev # Local development
# Production
npm run build # Build for production
npm run deploy # Upload to Reddit
npm run launch # Build + Deploy + Publish
# Monitoring
npx devvit logs r/your_subreddit
npx devvit versions
npx devvit rollback <version>
# Authentication
npx devvit login- Announce - Post in your subreddit about the new app
- Gather Feedback - Listen to user suggestions
- Iterate - Make improvements based on feedback
- Scale - Install on other subreddits
- Maintain - Regular updates and bug fixes
Good luck with your production release! 🚀