MCPcopy Create free account
hub / github.com/observablehq/framework / getDeployConfig

Method getDeployConfig

test/deploy-test.ts:115–120  ·  view source on GitHub ↗
(sourceRoot: string, deployConfigPath?: string)

Source from the content-addressed store, hash-verified

113 }
114
115 async getDeployConfig(sourceRoot: string, deployConfigPath?: string): Promise<DeployConfig> {
116 const key = this.getDeployConfigKey(sourceRoot, deployConfigPath);
117 return (
118 this.deployConfigs[key] ?? this.defaultDeployConfig ?? {projectId: null, projectSlug: null, workspaceLogin: null}
119 );
120 }
121
122 async setDeployConfig(sourceRoot: string, deployConfigPath: string | undefined, config: DeployConfig) {
123 const key = this.getDeployConfigKey(sourceRoot, deployConfigPath);

Callers 1

Calls 1

getDeployConfigKeyMethod · 0.95

Tested by

no test coverage detected