We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6482e5f commit a45b59eCopy full SHA for a45b59e
sim/executor/handlers/agent/agent-handler.ts
@@ -160,8 +160,11 @@ export class AgentBlockHandler implements BlockHandler {
160
hasApiKey: !!providerRequest.apiKey,
161
})
162
163
+ // Get the app URL from environment variable or use default
164
+ const appUrl = process.env.NEXT_PUBLIC_APP_URL
165
+
166
try {
- const response = await fetch('/api/providers', {
167
+ const response = await fetch(`${appUrl ? appUrl : ''}/api/providers`, {
168
method: 'POST',
169
headers: {
170
'Content-Type': 'application/json',
0 commit comments