willin
willin
CDCloudflare Developers
Created by willin on 3/4/2024 in #pages-help
how to use d1 procedures with Pages
No description
5 replies
CDCloudflare Developers
Created by willin on 3/1/2024 in #pages-help
Failed: build exceeded the time limit and was terminated
No description
5 replies
CDCloudflare Developers
Created by willin on 12/30/2023 in #workers-help
Error: Failed to upload secrets.
https://github.com/willin/sso/blob/c445146f46d8acec953863253c96f743d1c29965/.github/workflows/deploy.yml#L54 Error: Failed to upload secrets. Error: 🚨 Action failed
- name: Deploy API Service
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
command: publish --config wrangler.toml
workingDirectory: apps/sso
secrets: |
AFDIAN_CLIENT_ID
AFDIAN_CLIENT_SECRET
AFDIAN_CALLBACK_URL
ALIPAY_APP_ID
ALIPAY_PRIVATE_KEY
ALIPAY_CALLBACK_URL
GITHUB_ID
GITHUB_SECRET
SESSION_SECRET
# SESSION_KEY
# GITHUB_CALLBACK_URL
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
AFDIAN_CLIENT_ID: ${{ secrets.AFDIAN_CLIENT_ID }}
AFDIAN_CLIENT_SECRET: ${{ secrets.AFDIAN_CLIENT_SECRET }}
AFDIAN_CALLBACK_URL: ${{ secrets.AFDIAN_CALLBACK_URL }}
ALIPAY_APP_ID: ${{ secrets.ALIPAY_APP_ID }}
ALIPAY_PRIVATE_KEY: ${{ secrets.ALIPAY_PRIVATE_KEY }}
ALIPAY_CALLBACK_URL: ${{ secrets.ALIPAY_CALLBACK_URL }}
GITHUB_ID: ${{ secrets.GH_CLIENT_ID }}
GITHUB_SECRET: ${{ secrets.GH_CLIENT_SECRET }}
SESSION_SECRET: ${{ secrets.SESSION_SECRET }}
# SESSION_KEY: ${{ secrets.SESSION_KEY }}
# GITHUB_CALLBACK_URL: ${{ secrets.GITHUB_CALLBACK_URL }}
- name: Deploy API Service
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
command: publish --config wrangler.toml
workingDirectory: apps/sso
secrets: |
AFDIAN_CLIENT_ID
AFDIAN_CLIENT_SECRET
AFDIAN_CALLBACK_URL
ALIPAY_APP_ID
ALIPAY_PRIVATE_KEY
ALIPAY_CALLBACK_URL
GITHUB_ID
GITHUB_SECRET
SESSION_SECRET
# SESSION_KEY
# GITHUB_CALLBACK_URL
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
AFDIAN_CLIENT_ID: ${{ secrets.AFDIAN_CLIENT_ID }}
AFDIAN_CLIENT_SECRET: ${{ secrets.AFDIAN_CLIENT_SECRET }}
AFDIAN_CALLBACK_URL: ${{ secrets.AFDIAN_CALLBACK_URL }}
ALIPAY_APP_ID: ${{ secrets.ALIPAY_APP_ID }}
ALIPAY_PRIVATE_KEY: ${{ secrets.ALIPAY_PRIVATE_KEY }}
ALIPAY_CALLBACK_URL: ${{ secrets.ALIPAY_CALLBACK_URL }}
GITHUB_ID: ${{ secrets.GH_CLIENT_ID }}
GITHUB_SECRET: ${{ secrets.GH_CLIENT_SECRET }}
SESSION_SECRET: ${{ secrets.SESSION_SECRET }}
# SESSION_KEY: ${{ secrets.SESSION_KEY }}
# GITHUB_CALLBACK_URL: ${{ secrets.GITHUB_CALLBACK_URL }}
4 replies
CDCloudflare Developers
Created by willin on 12/27/2023 in #workers-help
Worker 522 with custom domain name
Error 522 occurs when Cloudflare times out contacting the origin web server. Two different timeouts cause HTTP error 522 depending on when they occur between Cloudflare and the origin web server: https://redirect-willin-love.willin.workers.dev/ --> works https://demo.willin.love/ --> 522
18 replies
CDCloudflare Developers
Created by willin on 12/22/2023 in #workers-help
Workers Routes Replacement
I want to create a workers route to:
a.com/api/sth
b.com/api/sth
c.com/api/sth
a.com/api/sth
b.com/api/sth
c.com/api/sth
if worker does not have response, then fetch origin a.com/api/sth as result.
how to write the fetch codes in the worker script?
5 replies
CDCloudflare Developers
Created by willin on 12/9/2023 in #pages-help
custom install command
the default command bun install --frozen-lockfile throw errors:
❯ bun install
[0.03ms] ".env.local"
bun install v1.0.15 (b3bdf22e)
+ @svelte-dev/auth@workspace:packages/auth
+ @svelte-dev/auth-afdian@workspace:packages/auth-afdian
+ @svelte-dev/auth-github@workspace:packages/auth-github
+ @svelte-dev/auth-oauth2@workspace:packages/auth-oauth2
+ @svelte-dev/auth-sso@workspace:packages/auth-sso
+ @svelte-dev/session@workspace:packages/session
+ web@workspace:apps/web
+ @svelte-dev/eslint-config@workspace:packages/eslint-config
husky - Git hooks installed

8 packages installed [10.62s]
❯ bun install --frozen-lockfile
[0.03ms] ".env.local"
bun install v1.0.15 (b3bdf22e)
error: lockfile had changes, but lockfile is frozen
❯ bun install
[0.03ms] ".env.local"
bun install v1.0.15 (b3bdf22e)
+ @svelte-dev/auth@workspace:packages/auth
+ @svelte-dev/auth-afdian@workspace:packages/auth-afdian
+ @svelte-dev/auth-github@workspace:packages/auth-github
+ @svelte-dev/auth-oauth2@workspace:packages/auth-oauth2
+ @svelte-dev/auth-sso@workspace:packages/auth-sso
+ @svelte-dev/session@workspace:packages/session
+ web@workspace:apps/web
+ @svelte-dev/eslint-config@workspace:packages/eslint-config
husky - Git hooks installed

8 packages installed [10.62s]
❯ bun install --frozen-lockfile
[0.03ms] ".env.local"
bun install v1.0.15 (b3bdf22e)
error: lockfile had changes, but lockfile is frozen
5 replies