auto-commit for ed3a0bd9-896b-45cb-82f4-f7390b51a4de

This commit is contained in:
emergent-agent-e1
2025-10-24 02:45:14 +00:00
parent 1456674871
commit b734c7ac00
2 changed files with 30 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
EXPO_TUNNEL_SUBDOMAIN=mobile-wallet-app-3
EXPO_PACKAGER_HOSTNAME=https://mobile-wallet-app-3.preview.emergentagent.com
EXPO_PUBLIC_BACKEND_URL=https://mobile-wallet-app-3.preview.emergentagent.com
EXPO_USE_FAST_RESOLVER="1"
METRO_CACHE_ROOT=/app/frontend/.metro-cache
+25
View File
@@ -0,0 +1,25 @@
// metro.config.js
const { getDefaultConfig } = require("expo/metro-config");
const path = require('path');
const { FileStore } = require('metro-cache');
const config = getDefaultConfig(__dirname);
// Use a stable on-disk store (shared across web/android)
const root = process.env.METRO_CACHE_ROOT || path.join(__dirname, '.metro-cache');
config.cacheStores = [
new FileStore({ root: path.join(root, 'cache') }),
];
// // Exclude unnecessary directories from file watching
// config.watchFolders = [__dirname];
// config.resolver.blacklistRE = /(.*)\/(__tests__|android|ios|build|dist|.git|node_modules\/.*\/android|node_modules\/.*\/ios|node_modules\/.*\/windows|node_modules\/.*\/macos)(\/.*)?$/;
// // Alternative: use a more aggressive exclusion pattern
// config.resolver.blacklistRE = /node_modules\/.*\/(android|ios|windows|macos|__tests__|\.git|.*\.android\.js|.*\.ios\.js)$/;
// Reduce the number of workers to decrease resource usage
config.maxWorkers = 2;
module.exports = config;