Skip to content

How do I deploy on CloudFlare Pages or Netlify? #80

@umairdadaa

Description

@umairdadaa

I am facing an error to deploy a little help pls

CloudFlare Pages:

<html><body>
<!--StartFragment--><pre class="c_kl c_bv c_iz c_ow c_ou c_ov c_dd c_tg c_th c_ti c_tj c_ht c_hu c_ss c_bx c_tk">
00:12:06.729 |  
-- | --
00:12:06.731 | ✘ [ERROR] A request to the Cloudflare API (/accounts/ (MY_API)/pages/projects/portfolio/upload-token) failed.
00:12:06.731 |  
00:12:06.731 | Authentication error [code: 10000]
00:12:06.731 |  
00:12:06.731 |  
00:12:06.732 | 📎 It looks like you are authenticating Wrangler via a custom API token set in an environment variable.
00:12:06.732 | Please ensure it has the correct permissions for this operation.
00:12:06.732 |  
00:12:06.732 | Getting User settings...
00:12:07.600 | 👋 You are logged in with an API Token, associated with the email [email protected]!
00:12:07.605 | ┌──────────────────────────────────┬──────────────────────────────────┐
00:12:07.605 | │ Account Name                                  Account ID                       
00:12:07.605 | ├──────────────────────────────────┼──────────────────────────────────┤
00:12:07.605 | │ Umair's Account                                 (MY_API)
00:12:07.605 | └──────────────────────────────────┴──────────────────────────────────┘
00:12:07.605 | 🔓 To see token permissions visit https://dash.cloudflare.com/profile/api-tokens
00:12:07.644 | Failed: Error while executing user command. Exited with error code: 1
00:12:07.659 | Failed: build command exited with code: 1
00:12:09.027 | Failed: error occurred while running build command

</pre><!--EndFragment-->
</body>
</html>

Netlify:

Resolved config
12:16:23 AM:   build:
12:16:23 AM:     command: npm run build
12:16:23 AM:     commandOrigin: ui
12:16:23 AM:     environment:
12:16:23 AM:       - NETLIFY_NEXT_PLUGIN_SKIP
12:16:23 AM:     publish: /opt/build/repo/out
12:16:23 AM:     publishOrigin: config
12:16:23 AM:   plugins:
12:16:23 AM:     - inputs: {}
12:16:23 AM:       origin: ui
12:16:23 AM:       package: '@netlify/plugin-nextjs'
12:16:23 AM:     - inputs: {}
12:16:23 AM:       origin: config
12:16:23 AM:       package: '@netlify/plugin-functions-install-core'
12:16:23 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:16:23 AM: Failing build: Failed to build site

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