Files
petfeed/mobile/metro.config.js
T
admin 9eb31c3323 feat(mobile): add Expo/React Native scaffold for PawFeed Android app
Connectivity + auth scaffold only: Expo Router, Clerk session auth via
expo-secure-store, and a type-only tRPC AppRouter import from the web
app's router — no backend changes needed. See mobile/README.md.
2026-09-05 11:01:49 +02:00

21 lines
785 B
JavaScript

const { getDefaultConfig } = require("expo/metro-config");
const path = require("path");
const projectRoot = __dirname;
const workspaceRoot = path.resolve(projectRoot, "..");
const config = getDefaultConfig(projectRoot);
// mobile/ is nested inside the OnlyPets repo and shares its root node_modules
// for the type-only AppRouter import (see src/api/trpc.ts) — Metro's default
// watchFolders only cover this project directory, so packages that only
// exist in the root install (e.g. @trpc/server, transitively required by
// @trpc/tanstack-react-query) otherwise fail to resolve.
config.watchFolders = [workspaceRoot];
config.resolver.nodeModulesPaths = [
path.resolve(projectRoot, "node_modules"),
path.resolve(workspaceRoot, "node_modules"),
];
module.exports = config;