Skip to content

创建cloudflare的pageas会报错 #14

@wifislax163

Description

@wifislax163

2025-12-24T00:42:18.860Z Initializing build environment...
2025-12-24T00:42:18.860Z Initializing build environment...
2025-12-24T00:42:20.175Z Success: Finished initializing build environment
2025-12-24T00:42:20.477Z Cloning repository...
2025-12-24T00:42:21.402Z No build output detected to cache. Skipping.
2025-12-24T00:42:21.402Z No dependencies detected to cache. Skipping.
2025-12-24T00:42:21.404Z Detected the following tools from environment:
2025-12-24T00:42:21.514Z Executing user deploy command: npx wrangler deploy
2025-12-24T00:42:22.889Z npm warn exec The following package was not found and will be installed: wrangler@4.56.0
2025-12-24T00:42:32.031Z
2025-12-24T00:42:32.031Z ⛅️ wrangler 4.56.0
2025-12-24T00:42:32.031Z ───────────────────
2025-12-24T00:42:32.045Z
2025-12-24T00:42:32.159Z ✘ [ERROR] Missing entry-point to Worker script or to assets directory
2025-12-24T00:42:32.159Z
2025-12-24T00:42:32.159Z
2025-12-24T00:42:32.160Z If there is code to deploy, you can either:
2025-12-24T00:42:32.160Z - Specify an entry-point to your Worker script via the command line (ex: npx wrangler deploy src/index.ts)
2025-12-24T00:42:32.160Z - Or create a "wrangler.jsonc" file containing:
2025-12-24T00:42:32.160Z
2025-12-24T00:42:32.160Z 2025-12-24T00:42:32.160Z { 2025-12-24T00:42:32.160Z "name": "worker-name", 2025-12-24T00:42:32.160Z "compatibility_date": "2025-12-24", 2025-12-24T00:42:32.160Z "main": "src/index.ts" 2025-12-24T00:42:32.160Z } 2025-12-24T00:42:32.160Z
2025-12-24T00:42:32.160Z
2025-12-24T00:42:32.160Z
2025-12-24T00:42:32.161Z If are uploading a directory of assets, you can either:
2025-12-24T00:42:32.163Z - Specify the path to the directory of assets via the command line: (ex: npx wrangler deploy --assets=./dist)
2025-12-24T00:42:32.163Z - Or create a "wrangler.jsonc" file containing:
2025-12-24T00:42:32.163Z
2025-12-24T00:42:32.163Z 2025-12-24T00:42:32.163Z { 2025-12-24T00:42:32.163Z "name": "worker-name", 2025-12-24T00:42:32.163Z "compatibility_date": "2025-12-24", 2025-12-24T00:42:32.163Z "assets": { 2025-12-24T00:42:32.164Z "directory": "./dist" 2025-12-24T00:42:32.164Z } 2025-12-24T00:42:32.164Z } 2025-12-24T00:42:32.164Z
2025-12-24T00:42:32.164Z
2025-12-24T00:42:32.164Z
2025-12-24T00:42:32.164Z
2025-12-24T00:42:32.175Z
2025-12-24T00:42:32.176Z 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-24T00:42:32.190Z 🪵 Logs were written to "/opt/buildhome/.config/.wrangler/logs/wrangler-2025-12-24_00-42-31_523.log"
2025-12-24T00:42:32.327Z Failed: error occurred while running deploy command
通过github部署报错,通过上传文件可以部署成功,但是不通

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