Dynamic Imports
Explains the use of dynamic imports in LivestockAI server functions for compatibility with Cloudflare Workers.
Install this skill
or
90/100
Security score
The Dynamic Imports skill was audited on Feb 25, 2026 and we found 6 security issues across 1 threat category. Review the findings below before installing.
Categories Tested
Security Issues
medium line 12
Access to .env file
SourceSKILL.md
| 12 | Cloudflare Workers doesn't support `process.env` at module load time. Environment variables are only available through the `env` binding from `cloudflare:workers`, and that binding is only accessible |
low line 43
Access to .env file
SourceSKILL.md
| 43 | // Try process.env first (Node.js, Bun, Vite dev server) |
low line 44
Access to .env file
SourceSKILL.md
| 44 | if (typeof process !== 'undefined' && process.env?.DATABASE_URL) { |
low line 45
Access to .env file
SourceSKILL.md
| 45 | return process.env.DATABASE_URL |
low line 138
Access to .env file
SourceSKILL.md
| 138 | // ❌ Accessing process.env directly |
low line 139
Access to .env file
SourceSKILL.md
| 139 | const url = process.env.DATABASE_URL |
Scanned on Feb 25, 2026
View Security DashboardInstall this skill with one command
/learn @captjay98/dynamic-imports