MCPcopy Create free account
hub / github.com/itwanger/toBeBetterJavaer / validateOssConfig

Function validateOssConfig

scripts/convert-mdnice-images-to-cdn.js:158–170  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

156}
157
158function validateOssConfig(config) {
159 const required = [
160 "PAICODING_OSS_AK",
161 "PAICODING_OSS_SK",
162 "PAICODING_OSS_ENDPOINT",
163 "PAICODING_OSS_BUCKET",
164 "PAICODING_OSS_HOST",
165 ];
166 const missing = required.filter((key) => !config[key]);
167 if (missing.length > 0) {
168 throw new Error(`Missing required env vars: ${missing.join(", ")}`);
169 }
170}
171
172function collectMarkdownFiles(targets) {
173 const files = [];

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected