Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Aug 25, 2025


PR-Codex overview

This PR focuses on updating the API reference URLs from https://api.thirdweb-dev.com to https://api.thirdweb.com across multiple files for consistency and accuracy.

Detailed summary

  • Updated href in the sidebar.tsx file.
  • Modified baseUrl in the types.gen.ts file.
  • Removed specUrl from the OpenApiEndpoint in page.mdx.
  • Changed the link for the full API reference in page.mdx.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • Documentation

    • Updated AI Chat API reference links to api.thirdweb.com.
    • Simplified HTTP API docs by removing an explicit spec URL, using the default source.
  • Chores

    • Aligned API client configuration to use the production base URL (api.thirdweb.com) by default, while retaining localhost support.

@changeset-bot
Copy link

changeset-bot bot commented Aug 25, 2025

⚠️ No Changeset found

Latest commit: e8a176d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 25, 2025

Walkthrough

Replaced thirdweb-dev.com with thirdweb.com in documentation links and API client type. Removed the specUrl prop from an OpenApiEndpoint usage in the AI Chat page. Updated ClientOptions.baseUrl literal type to the production API host.

Changes

Cohort / File(s) Summary
Portal docs updates
apps/portal/src/app/ai/chat/page.mdx, apps/portal/src/app/ai/sidebar.tsx
Updated API Reference links to https://api.thirdweb.com. Removed specUrl prop from <OpenApiEndpoint> usage in the chat page.
API client base URL type
packages/api/src/client/types.gen.ts
Changed ClientOptions.baseUrl union literal from "https://api.thirdweb-dev.com" to "https://api.thirdweb.com"; retained "http://localhost:3030" and (string & {}).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • TEAM-0000: Entity not found: Issue - Could not find referenced Issue.
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch Update_API_domain_from_thirdweb-dev.com_to_thirdweb.com

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added Portal Involves changes to the Portal (docs) codebase. packages labels Aug 25, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@joaquim-verges joaquim-verges changed the title Update API domain from thirdweb-dev.com to thirdweb.com [Docs] Update API domains Aug 25, 2025
@joaquim-verges joaquim-verges marked this pull request as ready for review August 25, 2025 02:01
@joaquim-verges joaquim-verges requested review from a team as code owners August 25, 2025 02:01
@codecov
Copy link

codecov bot commented Aug 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.53%. Comparing base (44fdfee) to head (e8a176d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7903   +/-   ##
=======================================
  Coverage   56.53%   56.53%           
=======================================
  Files         904      904           
  Lines       58592    58592           
  Branches     4143     4143           
=======================================
  Hits        33126    33126           
  Misses      25360    25360           
  Partials      106      106           
Flag Coverage Δ
packages 56.53% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vercel
Copy link

vercel bot commented Aug 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs-v2 Ready Ready Preview Comment Aug 25, 2025 2:11am
4 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
nebula Skipped Skipped Aug 25, 2025 2:11am
thirdweb_playground Skipped Skipped Aug 25, 2025 2:11am
thirdweb-www Skipped Skipped Aug 25, 2025 2:11am
wallet-ui Skipped Skipped Aug 25, 2025 2:11am

@vercel vercel bot temporarily deployed to Preview – thirdweb-www August 25, 2025 02:03 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui August 25, 2025 02:03 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula August 25, 2025 02:03 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground August 25, 2025 02:03 Inactive
@github-actions
Copy link
Contributor

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 64.06 KB (0%) 1.3 s (0%) 226 ms (+98.15% 🔺) 1.6 s
thirdweb (cjs) 357.05 KB (0%) 7.2 s (0%) 981 ms (+7.21% 🔺) 8.2 s
thirdweb (minimal + tree-shaking) 5.73 KB (0%) 115 ms (0%) 87 ms (+939.96% 🔺) 201 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 50 ms (+1819.24% 🔺) 61 ms
thirdweb/react (minimal + tree-shaking) 19.15 KB (0%) 383 ms (0%) 69 ms (+286% 🔺) 452 ms

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (3)
apps/portal/src/app/ai/sidebar.tsx (1)

25-27: Nit: show external-link affordance for the API Reference item.

For consistency with the "Playground" external link, consider adding the ExternalLinkIcon.

         {
           name: "API Reference",
-          href: "https://api.thirdweb.com/reference#tag/ai/post/ai/chat",
+          href: "https://api.thirdweb.com/reference#tag/ai/post/ai/chat",
+          icon: <ExternalLinkIcon />,
         },
apps/portal/src/app/ai/chat/page.mdx (1)

54-55: API Reference link domain update looks good; consider centralizing the docs base URL.

To avoid future drift, derive this URL from a single config/constant used across MDX and the sidebar.

packages/api/src/client/types.gen.ts (1)

3099-3100: Ensure the generator source is updated so this change persists.

Since this file is auto-generated, please update the OpenAPI/hey-api generation config (or the spec server URL) to keep https://api.thirdweb.com on future regenerations.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 44fdfee and e8a176d.

📒 Files selected for processing (3)
  • apps/portal/src/app/ai/chat/page.mdx (2 hunks)
  • apps/portal/src/app/ai/sidebar.tsx (1 hunks)
  • packages/api/src/client/types.gen.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Write idiomatic TypeScript with explicit function declarations and return types
Limit each file to one stateless, single-responsibility function for clarity
Re-use shared types from @/types or local types.ts barrels
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial, Pick, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose

Files:

  • apps/portal/src/app/ai/sidebar.tsx
  • packages/api/src/client/types.gen.ts
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (CLAUDE.md)

Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)

Files:

  • apps/portal/src/app/ai/sidebar.tsx
  • packages/api/src/client/types.gen.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (4)
apps/portal/src/app/ai/sidebar.tsx (2)

25-27: API Reference domain update looks correct.

Matches the PR objective and maintains the same path/fragment.


25-27: Portal AI docs cleared of deprecated API domain references

Verified that in apps/portal/src/app/ai there are no remaining occurrences of api.thirdweb-dev.com and no deprecated specUrl usages. No further updates to the portal AI documentation are required.

apps/portal/src/app/ai/chat/page.mdx (1)

25-25: specUrl is Optional and Defaults to a Valid Spec

The OpenApiEndpointProps interface in
apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx declares specUrl?: string and the OpenApiEndpointInner function signature provides a default value of "https://api.thirdweb.com/openapi.json". Omitting the specUrl prop (as in <OpenApiEndpoint path="/ai/chat" method="POST" />) will correctly resolve to the default OpenAPI spec and render the endpoint without errors.

Key locations:

  • apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx:13specUrl?: string
  • apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx:475–480specUrl = "https://api.thirdweb.com/openapi.json"

No further changes required.

packages/api/src/client/types.gen.ts (1)

3099-3100: LGTM: baseUrl literal updated to production host.

Keeps editor autocomplete for the prod host while still permitting arbitrary strings via (string & {}).

Comment on lines +3099 to 3100
baseUrl: "https://api.thirdweb.com" | "http://localhost:3030" | (string & {});
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Repo-wide check for lingering -dev domains and baseUrl defaults.

Run a quick audit to catch any stragglers or hardcoded defaults in client code/tests.


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Search for old domain anywhere in the repo..."
rg -nP -C2 --glob '!**/dist/**' --glob '!**/.git/**' 'https?://api\.thirdweb-dev\.com'

echo
echo "Search for baseUrl defaults/usages that might still point to the old domain..."
rg -nP -C3 --type=ts --type=tsx '\bbaseUrl\b'

Length of output: 209


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "🔍 Searching for legacy ‘api.thirdweb-dev.com’ across the repo..."
rg -nP --glob '!**/dist/**' --glob '!**/.git/**' 'https?://api\.thirdweb-dev\.com' || echo "✅ No legacy ‘-dev’ domains found"

echo
echo "🔍 Scanning for baseUrl defaults pointing at any thirdweb domain…"
rg -nP -C2 --type=ts --type=tsx 'baseUrl\s*:\s*".*thirdweb.*"' || echo "✅ No hardcoded baseUrl defaults found"

Length of output: 647


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "🔍 Searching for legacy ‘api.thirdweb-dev.com’ across the repo..."
rg -nP --glob '!**/dist/**' --glob '!**/.git/**' 'https?://api\.thirdweb-dev\.com' || echo "✅ No legacy ‘-dev’ domains found"

echo
echo "🔍 Scanning for baseUrl defaults pointing at any thirdweb domain…"
rg -nP -C2 'baseUrl\s*:\s*".*thirdweb.*"' \
  --glob '!**/dist/**' \
  --glob '!**/.git/**' \
  --glob '*.ts' --glob '*.tsx' --glob '*.js' --glob '*.jsx' \
  || echo "✅ No hardcoded baseUrl defaults found"

Length of output: 2756


Update lingering -dev domains in the nebula client
We still have two hardcoded references to thirdweb-dev.com in the nebula package; these must be updated to the production domain.

• packages/nebula/src/client/client.gen.ts (around line 26)
Replace

baseUrl: "https://nebula-api.thirdweb-dev.com",

with

baseUrl: "https://nebula-api.thirdweb.com",

• packages/nebula/src/client/types.gen.ts (around line 4460)
Replace

export type ClientOptions = {
  baseUrl: "https://nebula-api.thirdweb-dev.com" | (string & {});
};

with

export type ClientOptions = {
  baseUrl: "https://nebula-api.thirdweb.com" | (string & {});
};
🤖 Prompt for AI Agents
In packages/nebula/src/client/client.gen.ts around line 26 and
packages/nebula/src/client/types.gen.ts around line 4460, replace the hardcoded
dev domain "thirdweb-dev.com" with the production domain "thirdweb.com": update
the baseUrl value in client.gen.ts to use https://nebula-api.thirdweb.com and
update the ClientOptions type in types.gen.ts so its baseUrl union contains
https://nebula-api.thirdweb.com instead of the -dev domain; ensure formatting
and string literal types remain consistent with surrounding code.

@joaquim-verges joaquim-verges merged commit 30e2178 into main Aug 25, 2025
27 checks passed
@joaquim-verges joaquim-verges deleted the Update_API_domain_from_thirdweb-dev.com_to_thirdweb.com branch August 25, 2025 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages Portal Involves changes to the Portal (docs) codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants