-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: main
Are you sure you want to change the base?
Conversation
Bensigo
commented
Jul 24, 2023
- Convert codebase to typescript
- add deploy to Cloudflare button
.github/workflows/deploy.yml
Outdated
AXIOM_TOKEN: ${{ secrets.AXIOM_TOKEN }} | ||
uses: cloudflare/wrangler-action@2.0.0 | ||
with: | ||
apiToken: ${{ secrets.CF_API_TOKEN }} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
const requestHeadersToCapture: string[] = ['user-agent']; | ||
const responseHeadersToCapture: string[] = ['cf-cache-status', 'cf-ray']; | ||
|
||
// 8< ----------- snip ------------ |
There was a problem hiding this comment.
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) => { |
There was a problem hiding this comment.
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.