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

feat: add ipinfo worker #2800

Merged
merged 4 commits into from
May 4, 2023
Merged

feat: add ipinfo worker #2800

merged 4 commits into from
May 4, 2023

Conversation

bigint
Copy link
Member

@bigint bigint commented May 4, 2023

What does this PR do?

🤖 Generated by Copilot at 85a6e6b

This pull request adds a new worker package called ipinfo that returns some information about the IP address of the requestor. The package consists of a README.md file, a source code file in TypeScript, and a configuration file for Wrangler.

Related issues

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Enhancement (non-breaking small changes to existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Explanation of the changes

🤖 Generated by Copilot at 85a6e6b

  • Add a new ipinfo worker package that returns some information about the IP address of the requestor (link, link, link)
  • Create a README.md file with a title that describes the worker (packages/workers/ipinfo/README.md) (link)
  • Write the source code of the worker in a handleRequest function that extracts and returns the IP address, country code, and ray ID from the request headers (packages/workers/ipinfo/src/index.ts) (link)
  • Export a default object with a fetch method that invokes the handleRequest function as the entry point for the worker script (link)
  • Configure the worker name, main file, compatibility date, and routes in a wrangler.toml file (packages/workers/ipinfo/wrangler.toml) (link)
  • Include a custom domain for the worker in the routes (link)

Emoji

📝🚀🔧

@vercel
Copy link

vercel bot commented May 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
prerender ✅ Ready (Inspect) Visit Preview May 4, 2023 5:31pm
ui ✅ Ready (Inspect) Visit Preview May 4, 2023 5:31pm
web ✅ Ready (Inspect) Visit Preview May 4, 2023 5:31pm

@vercel vercel bot temporarily deployed to Preview – prerender May 4, 2023 17:23 Inactive
@vercel vercel bot temporarily deployed to Preview – ui May 4, 2023 17:23 Inactive
@vercel vercel bot temporarily deployed to Preview – ui May 4, 2023 17:28 Inactive
@vercel vercel bot temporarily deployed to Preview – prerender May 4, 2023 17:29 Inactive
@bigint bigint enabled auto-merge (squash) May 4, 2023 17:29
@bigint bigint merged commit 5f8d94c into main May 4, 2023
4 checks passed
@bigint bigint deleted the ip branch May 4, 2023 17:37
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.

None yet

1 participant