MCPcopy Create free account
hub / github.com/TanStack/ai / createPrintableConfig

Function createPrintableConfig

examples/ts-react-native-chat/scripts/dev.mjs:237–254  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

235}
236
237export function createPrintableConfig(config) {
238 return {
239 baseUrl: config.baseUrl,
240 lanAddress: config.lanAddress,
241 lanInterfaceName: config.lanInterfaceName,
242 metroHost:
243 config.metroHostSource === 'environment'
244 ? config.packagerHostname
245 : 'Expo-managed',
246 metroHostSource: config.metroHostSource,
247 packagerHostname: config.packagerHostname ?? null,
248 port: config.port,
249 pnpmCommand: config.pnpmCommand,
250 serverOpenAIKeyLoaded: config.serverOpenAIKeyLoaded,
251 usedProvidedBaseUrl: config.usedProvidedBaseUrl,
252 usedProvidedPackagerHostname: config.usedProvidedPackagerHostname,
253 }
254}
255
256function printConfig(config) {
257 console.log(JSON.stringify(createPrintableConfig(config), null, 2))

Callers 2

dev.test.mjsFile · 0.90
printConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected