nieheyong / starflare

A web app helps you manage your GitHub stars simply and efficiently
https://starflare.app
25 stars 5 forks source link

Cloudflare Pages Deploy Error #2

Open Rvn0xsy opened 4 days ago

Rvn0xsy commented 4 days ago

image

image

14:18:50.472    (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
14:18:51.210    ➤ YN0032: │ evp_bytestokey@npm:1.0.3: Implicit dependencies on node-gyp are discouraged
14:18:51.731    ➤ YN0002: │ starflare@workspace:. doesn't provide webpack (pcc690), requested by sass-loader
14:18:51.731    ➤ YN0002: │ svg-sprite-loader@npm:4.3.0 doesn't provide webpack (p605ee), requested by html-webpack-plugin
14:18:51.731    ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
14:18:51.734    ➤ YN0000: └ Completed in 6s 228ms
14:18:51.802    ➤ YN0000: ┌ Post-resolution validation
14:18:51.803    ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
14:18:51.803    ➤ YN0000: └ Completed
14:18:51.803    ➤ YN0000: Failed with errors in 6s 299ms
14:18:51.844    Error: Exit with error code: 1
14:18:51.845        at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
14:18:51.845        at Object.onceWrapper (node:events:652:26)
14:18:51.845        at ChildProcess.emit (node:events:537:28)
14:18:51.845        at ChildProcess._handle.onexit (node:internal/child_process:291:12)
14:18:51.853    Failed: build command exited with code: 1
14:18:52.704    Failed: error occurred while running build command

是不是需要额外配置什么信息?

nieheyong commented 4 days ago

cloudflare 默认的 build 环境node js 版本太高,需要指定使用低版本node js. 同时还需配置其他环境变量:

CLIENT_ID  # github app client id
CLIENT_SECRET # github app client secret
NODE_VERSION 16.20.0
YARN_VERSION 1.22.19
image
Rvn0xsy commented 1 day ago

感谢解惑,部署成功后,我发现点击了登录按钮,还是会跳转到 starflare.app

在 Homepage URL 和 Authorization callback URL 我填写的都是我的自定义域名。

https://gitstar.payloads.online/

image

MushR00m commented 1 day ago

项目的.env clientid改下就好了

nieheyong commented 5 minutes ago