Skip to content

Cloudflare Pages部署失败,以下是错误日志 #31

@qw1375

Description

@qw1375

2025-12-19T03:18:06.415Z Initializing build environment...
2025-12-19T03:18:07.855Z Success: Finished initializing build environment
2025-12-19T03:18:08.165Z Cloning repository...
2025-12-19T03:18:09.475Z No build output detected to cache. Skipping.
2025-12-19T03:18:09.475Z No dependencies detected to cache. Skipping.
2025-12-19T03:18:09.477Z Detected the following tools from environment:
2025-12-19T03:18:09.554Z Executing user deploy command: npx wrangler deploy
2025-12-19T03:18:12.240Z npm warn exec The following package was not found and will be installed: wrangler@4.56.0
2025-12-19T03:18:23.081Z
2025-12-19T03:18:23.082Z ⛅️ wrangler 4.56.0
2025-12-19T03:18:23.082Z ───────────────────
2025-12-19T03:18:23.098Z
2025-12-19T03:18:23.162Z ✘ [ERROR] Missing entry-point to Worker script or to assets directory
2025-12-19T03:18:23.162Z
2025-12-19T03:18:23.162Z
2025-12-19T03:18:23.162Z If there is code to deploy, you can either:
2025-12-19T03:18:23.163Z - Specify an entry-point to your Worker script via the command line (ex: npx wrangler deploy src/index.ts)
2025-12-19T03:18:23.163Z - Or create a "wrangler.jsonc" file containing:
2025-12-19T03:18:23.163Z
2025-12-19T03:18:23.163Z 2025-12-19T03:18:23.163Z { 2025-12-19T03:18:23.163Z "name": "worker-name", 2025-12-19T03:18:23.163Z "compatibility_date": "2025-12-19", 2025-12-19T03:18:23.163Z "main": "src/index.ts" 2025-12-19T03:18:23.163Z } 2025-12-19T03:18:23.163Z
2025-12-19T03:18:23.163Z
2025-12-19T03:18:23.163Z
2025-12-19T03:18:23.163Z If are uploading a directory of assets, you can either:
2025-12-19T03:18:23.166Z - Specify the path to the directory of assets via the command line: (ex: npx wrangler deploy --assets=./dist)
2025-12-19T03:18:23.166Z - Or create a "wrangler.jsonc" file containing:
2025-12-19T03:18:23.166Z
2025-12-19T03:18:23.166Z 2025-12-19T03:18:23.166Z { 2025-12-19T03:18:23.166Z "name": "worker-name", 2025-12-19T03:18:23.167Z "compatibility_date": "2025-12-19", 2025-12-19T03:18:23.167Z "assets": { 2025-12-19T03:18:23.167Z "directory": "./dist" 2025-12-19T03:18:23.167Z } 2025-12-19T03:18:23.167Z } 2025-12-19T03:18:23.167Z
2025-12-19T03:18:23.168Z
2025-12-19T03:18:23.168Z
2025-12-19T03:18:23.168Z
2025-12-19T03:18:23.181Z
2025-12-19T03:18:23.181Z Cloudflare collects anonymous telemetry about your usage of Wrangler. Learn more at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md
2025-12-19T03:18:23.197Z 🪵 Logs were written to "/opt/buildhome/.config/.wrangler/logs/wrangler-2025-12-19_03-18-22_448.log"
2025-12-19T03:18:23.350Z 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