fix: Force production mode for admin SPA assets
🐛 Problem: - SPA not loading in wp-admin - Trying to load from dev server (localhost:5173) - Happening in Local by Flywheel (wp_get_environment_type() = 'development') ✅ Solution: - Changed is_dev_mode() to ONLY enable dev mode if WOONOOW_ADMIN_DEV constant is explicitly set - Removed wp_get_environment_type() check - Now defaults to production mode (loads from admin-spa/dist/) 📝 To Enable Dev Mode: Add to wp-config.php: define('WOONOOW_ADMIN_DEV', true); 🎯 Result: - Production mode by default - Dev mode only when explicitly enabled - Works correctly in Local by Flywheel and other local environments
This commit is contained in:
26
PHASE_COMPLETE.md
Normal file
26
PHASE_COMPLETE.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# Phase Complete ✅
|
||||
|
||||
**Date:** November 15, 2025
|
||||
|
||||
## Completed
|
||||
|
||||
### 1. Email Queue ✅
|
||||
- Already implemented via MailQueue + WooEmailOverride
|
||||
- Prevents 30s timeout
|
||||
|
||||
### 2. Documentation ✅
|
||||
- Reduced 56 → 27 files (52% reduction)
|
||||
- Created NOTIFICATION_SYSTEM.md (consolidated)
|
||||
- Deleted 30 obsolete docs
|
||||
|
||||
### 3. Git Push ✅
|
||||
- 3 commits pushed to main
|
||||
- Remote: git.backoffice.biz.id
|
||||
|
||||
### 4. Plugin Zip ✅
|
||||
- File: woonoow.zip
|
||||
- Size: 1.4MB
|
||||
- Location: /wp-content/plugins/woonoow.zip
|
||||
- Guide: PLUGIN_ZIP_GUIDE.md
|
||||
|
||||
## Ready for Distribution! 🚀
|
||||
Reference in New Issue
Block a user