Skip to content

[ERROR] Could not detect a directory containing static files #15

Description

@hamsandvich

Here the following log and build setting i have use the defaults and put in npm install

Image

2026-03-02T23:44:09.692Z Initializing build environment...
2026-03-02T23:44:11.949Z Success: Finished initializing build environment
2026-03-02T23:44:12.697Z Cloning repository...
2026-03-02T23:44:13.934Z No build output detected to cache. Skipping.
2026-03-02T23:44:13.934Z No dependencies detected to cache. Skipping.
2026-03-02T23:44:13.938Z Detected the following tools from environment: bun@1.2.15, nodejs@22.16.0
2026-03-02T23:44:13.941Z Installing project dependencies: bun install
2026-03-02T23:44:14.157Z bun install v1.2.15 (df017990)
2026-03-02T23:44:14.197Z Resolving dependencies
2026-03-02T23:44:14.282Z Resolved, downloaded and extracted [4]
2026-03-02T23:44:14.284Z Saved lockfile
2026-03-02T23:44:14.285Z
2026-03-02T23:44:14.285Z + aws4fetch@1.0.20
2026-03-02T23:44:14.285Z
2026-03-02T23:44:14.285Z 1 package installed [163.00ms]
2026-03-02T23:44:14.456Z Executing user build command: npm install
2026-03-02T23:44:15.967Z
2026-03-02T23:44:15.968Z up to date, audited 2 packages in 861ms
2026-03-02T23:44:15.969Z
2026-03-02T23:44:15.969Z found 0 vulnerabilities
2026-03-02T23:44:16.023Z Success: Build command completed
2026-03-02T23:44:16.209Z Executing user deploy command: npx wrangler deploy
2026-03-02T23:44:17.443Z npm warn exec The following package was not found and will be installed: wrangler@4.69.0
2026-03-02T23:44:28.874Z
2026-03-02T23:44:28.874Z ⛅️ wrangler 4.69.0
2026-03-02T23:44:28.875Z ───────────────────
2026-03-02T23:44:29.042Z
2026-03-02T23:44:29.044Z Cloudflare collects anonymous telemetry about your usage of Wrangler. Learn more at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md
2026-03-02T23:44:29.045Z
2026-03-02T23:44:29.142Z ✘ [ERROR] Could not detect a directory containing static files (e.g. html, css and js) for the project
2026-03-02T23:44:29.143Z
2026-03-02T23:44:29.143Z
2026-03-02T23:44:29.190Z 🪵 Logs were written to "/opt/buildhome/.config/.wrangler/logs/wrangler-2026-03-02_23-44-27_903.log"
2026-03-02T23:44:29.270Z Failed: error occurred while running deploy command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions