How do I deploy on CloudFlare Pages or Netlify?
umairdadaa opened this issue ยท 0 comments
umairdadaa commented
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 m.umairrr786@gmail.com!
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