| 217 | } |
| 218 | |
| 219 | function printHelp() { |
| 220 | console.log(`TanStack AI React Native dev runner |
| 221 | |
| 222 | Usage: |
| 223 | pnpm dev Start Hono and Expo in LAN mode |
| 224 | node scripts/dev.mjs Start Hono and Expo in LAN mode |
| 225 | node scripts/dev.mjs --print-config |
| 226 | node scripts/dev.mjs --help |
| 227 | |
| 228 | Environment: |
| 229 | EXPO_PUBLIC_TANSTACK_AI_BASE_URL |
| 230 | Optional backend URL override for Expo, for example http://192.168.1.10:8787. |
| 231 | REACT_NATIVE_PACKAGER_HOSTNAME |
| 232 | Optional Metro host override for unusual network cases. Expo manages Metro |
| 233 | host detection by default. |
| 234 | `) |
| 235 | } |
| 236 | |
| 237 | export function createPrintableConfig(config) { |
| 238 | return { |