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
4 changes: 2 additions & 2 deletions apps/portal/src/app/ai/chat/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You can use the API with the HTTP API directly, or with any OpenAI-compatible cl
<TabsTrigger value="openai">OpenAI Client</TabsTrigger>
</TabsList>
<TabsContent value="api">
<OpenApiEndpoint path="/ai/chat" method="POST" specUrl="https://api.thirdweb-dev.com/openapi.json" />
<OpenApiEndpoint path="/ai/chat" method="POST" />
</TabsContent>
<TabsContent value="openai">

Expand Down Expand Up @@ -52,4 +52,4 @@ print(chat_completion)
### Going further

- [Handle streaming responses](/ai/chat/streaming)
- [Full API Reference](https://api.thirdweb-dev.com/reference#tag/ai/post/ai/chat)
- [Full API Reference](https://api.thirdweb.com/reference#tag/ai/post/ai/chat)
2 changes: 1 addition & 1 deletion apps/portal/src/app/ai/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const sidebar: SideBar = {
},
{
name: "API Reference",
href: "https://api.thirdweb-dev.com/reference#tag/ai/post/ai/chat",
href: "https://api.thirdweb.com/reference#tag/ai/post/ai/chat",
},
],
},
Expand Down
5 changes: 1 addition & 4 deletions packages/api/src/client/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3096,8 +3096,5 @@ export type TransferTokenWithUsdResponse =
TransferTokenWithUsdResponses[keyof TransferTokenWithUsdResponses];

export type ClientOptions = {
baseUrl:
| "https://api.thirdweb-dev.com"
| "http://localhost:3030"
| (string & {});
baseUrl: "https://api.thirdweb.com" | "http://localhost:3030" | (string & {});
};
Comment on lines +3099 to 3100
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.

Loading