From bf59184fb10b286d0b702d8d85a84c0eb9432882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Umut=20G=C3=BCden?= <74313913+umutguden@users.noreply.github.com> Date: Mon, 9 Nov 2026 17:45:52 +0300 Subject: [PATCH] Remove Vercel deploy path, now dead after repo transfer Cloudflare (ip.hmddevs.org) is the live deployment, confirmed working. Vercel's deploy jobs reference stale VERCEL_PROJECT_ID/ORG_ID secrets and never run; ip-api.vercel.app is stale and unused. --- .github/workflows/ci.yml | 20 ----------- .github/workflows/release.yml | 8 ----- README.md | 17 +--------- package.json | 2 -- vercel.json | 62 ----------------------------------- 5 files changed, 1 insertion(+), 108 deletions(-) delete mode 100644 vercel.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e61ec83..835db9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,6 @@ jobs: - name: Validate JSON files run: | node -e "require('./package.json')" - node -e "require('./vercel.json')" test: name: Test (Node ${{ matrix.node-version }}) @@ -93,22 +92,3 @@ jobs: else echo "::warning::Critical vulnerabilities detected" fi - - deploy: - name: Deploy to Vercel - runs-on: ubuntu-latest - needs: [test, security] - if: github.actor != 'dependabot[bot]' - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Deploy to Vercel - uses: amondnet/vercel-action@v25 - with: - vercel-token: ${{ secrets.VERCEL_TOKEN }} - vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} - vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} - vercel-args: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && '--prod' || '' }} - github-comment: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0231de8..76ffe17 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,11 +50,3 @@ jobs: generate_release_notes: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Deploy to Vercel Production - uses: amondnet/vercel-action@v25 - with: - vercel-token: ${{ secrets.VERCEL_TOKEN }} - vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} - vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} - vercel-args: '--prod' diff --git a/README.md b/README.md index b2f2e4f..6797c18 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ # IP API [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Deploy with Vercel](https://img.shields.io/badge/Vercel-Deployed-black?logo=vercel)](https://ip.hmddevs.org) [![Node.js](https://img.shields.io/badge/Node.js-18+-339933?logo=node.js&logoColor=white)](https://nodejs.org/) **Privacy-focused IP geolocation API.** @@ -16,7 +15,7 @@ ## Features -- Sub-100ms responses via Vercel's edge network +- Sub-100ms responses via Cloudflare's edge network - No logging, no tracking, no data storage - Accurate geolocation data for IPs worldwide - No API keys required @@ -172,7 +171,6 @@ async fn main() -> Result<(), Box> { ### Prerequisites - [Node.js](https://nodejs.org/) 18+ -- [Vercel CLI](https://vercel.com/cli) (optional) ### Installation @@ -190,17 +188,6 @@ npm run dev Visit `http://localhost:3000` to test locally. -### Deploy to Vercel - -[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/hmddevs/ip-api) - -Or via CLI: - -```bash -npm install -g vercel -vercel --prod -``` - ## Project Structure ``` @@ -215,7 +202,6 @@ ip-api/ │ └── dependabot.yml # Dependency updates ├── openapi.yaml # OpenAPI 3.1 specification ├── package.json -├── vercel.json ├── CHANGELOG.md ├── CONTRIBUTING.md ├── CODE_OF_CONDUCT.md @@ -249,7 +235,6 @@ Found a vulnerability? See [SECURITY.md](SECURITY.md). - [MaxMind GeoLite2](https://dev.maxmind.com/geoip/geolite2-free-geolocation-data) for geolocation data - [geoip-lite](https://github.com/geoip-lite/node-geoip) for the Node.js geolocation library -- [Vercel](https://vercel.com) for hosting --- diff --git a/package.json b/package.json index 8745b00..df28d66 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "api", "rest-api", "serverless", - "vercel", "country", "location", "ipv4", @@ -53,7 +52,6 @@ ], "files": [ "api/", - "vercel.json", "LICENSE", "README.md" ], diff --git a/vercel.json b/vercel.json deleted file mode 100644 index 7a8e88d..0000000 --- a/vercel.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "$schema": "https://openapi.vercel.sh/vercel.json", - "version": 2, - "public": true, - "cleanUrls": true, - "trailingSlash": false, - "rewrites": [ - { - "source": "/health", - "destination": "/api" - }, - { - "source": "/", - "destination": "/api" - }, - { - "source": "/(.*)", - "destination": "/api" - } - ], - "headers": [ - { - "source": "/(.*)", - "headers": [ - { - "key": "X-Content-Type-Options", - "value": "nosniff" - }, - { - "key": "X-Frame-Options", - "value": "DENY" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block" - }, - { - "key": "Referrer-Policy", - "value": "strict-origin-when-cross-origin" - }, - { - "key": "Permissions-Policy", - "value": "geolocation=(), microphone=(), camera=()" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=31536000; includeSubDomains" - } - ] - } - ], - "functions": { - "api/index.js": { - "memory": 128, - "maxDuration": 10 - } - } -}