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