Skip to main content

cloudflare-worker-base

Sets up Cloudflare Workers with Hono routing and Vite, preventing common errors for seamless project deployment.

Install this skill

or
67/100

Security score

The cloudflare-worker-base skill was audited on Feb 9, 2026 and we found 19 security issues across 3 threat categories, including 1 high-severity. Review the findings below before installing.

Categories Tested

Security Issues

high line 161

Curl to non-GitHub URL

SourceSKILL.md
161**Error**: `curl http://localhost:5173/prefix` returns 404 instead of index.html
low line 65

Access to .env file

SourceSKILL.md
65app.all('*', (c) => c.env.ASSETS.fetch(c.req.raw))
low line 168

Access to .env file

SourceSKILL.md
168if (import.meta.env.DEV) {
low line 169

Access to .env file

SourceSKILL.md
169url.pathname = url.pathname.replace(import.meta.env.BASE_URL, '');
low line 171

Access to .env file

SourceSKILL.md
171return this.env.ASSETS.fetch(request);
low line 258

Access to .env file

SourceSKILL.md
258// Access bindings via this.env
low line 259

Access to .env file

SourceSKILL.md
259const session = await this.env.SESSIONS.get(token)
low line 265

Access to .env file

SourceSKILL.md
265await this.env.SESSIONS.put(token, JSON.stringify({ userId }), { expirationTtl: 3600 })
low line 12

External URL reference

SourceSKILL.md
12**Production-tested**: cloudflare-worker-base-test (https://cloudflare-worker-base-test.webfonts.workers.dev)
low line 69

External URL reference

SourceSKILL.md
69npm run dev # Local: http://localhost:8787
low line 120

External URL reference

SourceSKILL.md
120**Source**: [Cloudflare Static Assets Docs](https://developers.cloudflare.com/workers/static-assets/routing/advanced/gradual-rollouts)
low line 129

External URL reference

SourceSKILL.md
129**Source**: [Cloudflare Static Assets Billing Docs](https://developers.cloudflare.com/workers/static-assets/billing-and-limitations)
low line 161

External URL reference

SourceSKILL.md
161**Error**: `curl http://localhost:5173/prefix` returns 404 instead of index.html
low line 381

External URL reference

SourceSKILL.md
381- **Cloudflare Workers**: https://developers.cloudflare.com/workers/
low line 382

External URL reference

SourceSKILL.md
382- **Static Assets**: https://developers.cloudflare.com/workers/static-assets/
low line 383

External URL reference

SourceSKILL.md
383- **Vite Plugin**: https://developers.cloudflare.com/workers/vite-plugin/
low line 384

External URL reference

SourceSKILL.md
384- **Wrangler**: https://developers.cloudflare.com/workers/wrangler/
low line 385

External URL reference

SourceSKILL.md
385- **Hono**: https://hono.dev/docs/getting-started/cloudflare-workers
low line 411

External URL reference

SourceSKILL.md
411**Live Example**: https://cloudflare-worker-base-test.webfonts.workers.dev (build time: 45 min, 0 errors, all 10 issues prevented)
Scanned on Feb 9, 2026
View Security Dashboard
Installation guide →