# Commit Message for SharedArrayBuffer Platform Exclusion
fix: eliminate SharedArrayBuffer checks on non-web platforms * Add platform guard in AbsurdSqlDatabaseService to only initialize on web * Change singleton pattern from eager to lazy instantiation * Update worker import to use lazy singleton pattern * Prevents absurd-sql initialization on Electron/Capacitor platforms * Reduces console noise and memory footprint on desktop/mobile * Maintains full web platform functionality and performance Resolves SharedArrayBuffer-related console output on Electron platform while preserving all web features and maintaining clean architecture.
This commit is contained in:
@@ -60,7 +60,7 @@ log_info "Cleaning dist directory..."
|
||||
clean_build_artifacts "dist" "electron/app"
|
||||
|
||||
# Step 3: Build Capacitor version for Electron
|
||||
safe_execute "Building Capacitor version" "npm run build:capacitor" || exit 2
|
||||
safe_execute "Building Electron version" "npm run build:electron" || exit 2
|
||||
|
||||
# Step 4: Prepare Electron app directory
|
||||
log_info "Preparing Electron app directory..."
|
||||
|
||||
@@ -183,7 +183,7 @@ setup_build_env() {
|
||||
export DEBUG_MIGRATIONS=0
|
||||
;;
|
||||
"electron")
|
||||
export VITE_PLATFORM=capacitor
|
||||
export VITE_PLATFORM=electron
|
||||
export VITE_PWA_ENABLED=false
|
||||
export VITE_DISABLE_PWA=true
|
||||
export DEBUG_MIGRATIONS=0
|
||||
|
||||
@@ -11,8 +11,8 @@ echo "🔧 Starting Electron development workflow..."
|
||||
cd /home/noone/projects/timesafari/crowd-master
|
||||
|
||||
# Build for Capacitor
|
||||
echo "📦 Building for Capacitor..."
|
||||
npm run build:capacitor
|
||||
echo "📦 Building for Electron..."
|
||||
npm run build:electron
|
||||
|
||||
# Create electron/app directory if it doesn't exist
|
||||
echo "📁 Preparing Electron app directory..."
|
||||
|
||||
Reference in New Issue
Block a user