Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typescipt support and delopy to cf button #13

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

Bensigo
Copy link

@Bensigo Bensigo commented Jul 24, 2023

  • Convert codebase to typescript
  • add deploy to Cloudflare button

AXIOM_TOKEN: ${{ secrets.AXIOM_TOKEN }}
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need that file?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a Deploy to Cloudflare button is part of the steps to follow, from the documentation

README.md Outdated Show resolved Hide resolved
src/worker.ts Outdated Show resolved Hide resolved
@Bensigo Bensigo requested review from bahlo and dasfmi July 26, 2023 12:08
const requestHeadersToCapture: string[] = ['user-agent'];
const responseHeadersToCapture: string[] = ['cf-cache-status', 'cf-ray'];

// 8< ----------- snip ------------
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like this comment was a left out


const WORKER_ID: string = generateId(6);

// const throttle = <T>(fn: Function, wait: number, maxLen: number, env: ENV) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is not needed we can remove it.

@F0rce F0rce mentioned this pull request Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants