Skip to content

Commit

Permalink
chore: update Cloudflare IP and script imports
Browse files Browse the repository at this point in the history
- Corrected the IP address for a specific Cloudflare region to reflect the latest configuration.
- Fixed the import path in a script to correctly reference the Cloudflare configuration file.
- Adjusted the locale setting in a script to use 'en-US' for region display names.
- Updated a Vercel configuration to correct the destination URL for a specific route.
  • Loading branch information
ccbikai committed Sep 30, 2024
1 parent 48c20c1 commit 4b055c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/cloudflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const CLOUDFLARE_REGIONS = {
},
sk1: {
provider: 'cloudflare',
ip: '8.19.8.6',
ip: '8.47.69.6',
},
fr1: {
provider: 'cloudflare',
Expand Down
2 changes: 1 addition & 1 deletion scripts/cf-dns.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Cloudflare from 'cloudflare'
import { CLOUDFLARE_REGIONS } from '../config'
import { CLOUDFLARE_REGIONS } from '../config/cloudflare'

const WORKER_HOST = process.env.WORKER_HOST

Expand Down
2 changes: 1 addition & 1 deletion scripts/colo.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import locations from './locations.json' with { type: 'json' }
// locations: https://raw.githubusercontent.com/Netrvin/cloudflare-colo-list/refs/heads/main/locations.json
import fs from 'node:fs'

const displayNames = new Intl.DisplayNames(['en'], { type: 'region' })
const displayNames = new Intl.DisplayNames(['en-US'], { type: 'region' })

const COLOS = Object.values(locations)
.reduce((acc, location) => {
Expand Down
2 changes: 1 addition & 1 deletion vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"source": "/FKYHsnzM/:match*",
"destination": "https://dns.surf/_vercel/insights/:match*"
"destination": "https://vercel.dns.surf/_vercel/insights/:match*"
}
]
}

0 comments on commit 4b055c4

Please sign in to comment.