MCPcopy Create free account
hub / github.com/instantdb/instant / readLocalEmailFile

Function readLocalEmailFile

client/packages/cli/src/old.js:424–433  ·  view source on GitHub ↗
(emailPath)

Source from the content-addressed store, hash-verified

422}
423
424export async function readLocalEmailFile(emailPath) {
425 const readCandidates = getEmailReadCandidates(emailPath);
426 const res = await loadConfig({
427 sources: readCandidates,
428 merge: false,
429 });
430 if (!res.config) return;
431 const relativePath = path.relative(process.cwd(), res.sources[0]);
432 return { path: relativePath, email: res.config };
433}
434
435export async function readInstantConfigFile() {
436 return (

Callers 2

writeEmailTemplateFunction · 0.90
readEmailConfigFunction · 0.90

Calls 2

getEmailReadCandidatesFunction · 0.90
loadConfigFunction · 0.90

Tested by

no test coverage detected