Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }})
Expand Down Expand Up @@ -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
8 changes: 0 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
17 changes: 1 addition & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.**
Expand All @@ -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
Expand Down Expand Up @@ -172,7 +171,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
### Prerequisites

- [Node.js](https://nodejs.org/) 18+
- [Vercel CLI](https://vercel.com/cli) (optional)

### Installation

Expand All @@ -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

```
Expand All @@ -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
Expand Down Expand Up @@ -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

---

Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"api",
"rest-api",
"serverless",
"vercel",
"country",
"location",
"ipv4",
Expand Down Expand Up @@ -53,7 +52,6 @@
],
"files": [
"api/",
"vercel.json",
"LICENSE",
"README.md"
],
Expand Down
62 changes: 0 additions & 62 deletions vercel.json

This file was deleted.

Loading