MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / ensureAccessKey

Function ensureAccessKey

scripts/deploy-prepare.js:9–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const distDir = path.join(projectRoot, 'dist');
8
9function ensureAccessKey() {
10 const key = process.env.ACCESS_KEY;
11 if (!key) {
12 throw new Error('ACCESS_KEY 未配置,无法保护 Functions。');
13 }
14}
15
16function ensureDist() {
17 const indexPath = path.join(distDir, 'index.html');

Callers 1

deploy-prepare.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected