mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-04-22 03:07:54 +00:00
auto-commit for ed3a0bd9-896b-45cb-82f4-f7390b51a4de
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user