{"version":3,"file":"runtimeCredentials.mjs","names":[],"sources":["../../src/setup/runtimeCredentials.ts"],"sourcesContent":["/**\n * Runtime credentials from the environment. GT_PROJECT_ID and GT_API_KEY are\n * the supported names; NEXT_PUBLIC_GT_PROJECT_ID and\n * NEXT_PUBLIC_GT_DEV_API_KEY are still read for projects set up by earlier\n * versions of gt init. In development, GT_API_KEY doubles as the hot-reload\n * key, and withGTConfig passes both to client code. Production builds read\n * no development key.\n */\nexport function getRuntimeCredentials() {\n  const apiKey = process.env.GT_API_KEY;\n  return {\n    projectId:\n      process.env.GT_PROJECT_ID || process.env.NEXT_PUBLIC_GT_PROJECT_ID,\n    apiKey,\n    devApiKey:\n      process.env.NODE_ENV === 'development'\n        ? apiKey || process.env.NEXT_PUBLIC_GT_DEV_API_KEY\n        : undefined,\n  };\n}\n"],"mappings":";;;;;;;;;AAQA,SAAgB,wBAAwB;CACtC,MAAM,SAAS,QAAQ,IAAI;AAC3B,QAAO;EACL,WACE,QAAQ,IAAI,iBAAiB,QAAQ,IAAI;EAC3C;EACA,WACE,QAAQ,IAAI,aAAa,gBACrB,UAAU,QAAQ,IAAI,6BACtB,KAAA;EACP"}