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

Function readInstantConfigFile

client/packages/cli/src/old.js:435–450  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

433}
434
435export async function readInstantConfigFile() {
436 return (
437 await loadConfig({
438 sources: [
439 // load from `instant.config.xx`
440 {
441 files: 'instant.config',
442 extensions: ['ts', 'mts', 'cts', 'js', 'mjs', 'cjs', 'json'],
443 },
444 ],
445 // if false, the only the first matched will be loaded
446 // if true, all matched will be loaded and deep merged
447 merge: false,
448 })
449 ).config;
450}
451
452async function readConfigAuthToken(allowAdminToken = true) {
453 const options = program.opts();

Callers 1

CurrentAppLiveFunction · 0.90

Calls 1

loadConfigFunction · 0.90

Tested by

no test coverage detected