Skip to content

Commit 3e04447

Browse files
committed
fix localhost endpoint
1 parent 5d9dcbe commit 3e04447

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/agentic-langgraph/app/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h1>LangGraph Agent Output</h1>
3737
userInput.value = "";
3838
output.textContent = "Waiting for response...";
3939
try {
40-
const res = await fetch("http://localhost:3000/agent", {
40+
const res = await fetch('/agent', {
4141
method: "POST",
4242
headers: { "Content-Type": "application/json" },
4343
body: JSON.stringify({ input }),

samples/agentic-langgraph/app/server.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ app.get("/", (req, res) => {
2323
res.sendFile(path.join(process.cwd(), "public", "index.html"));
2424
});
2525

26-
app.listen(3000, () => console.log("Agent server listening on http://localhost:3000"));
26+
app.listen(3000, () => console.log("Agent server listening on APP PORT 3000"));

0 commit comments

Comments
 (0)