Skip to content

Commit

Permalink
fix rsc example base url
Browse files Browse the repository at this point in the history
  • Loading branch information
nksaraf committed Dec 27, 2023
1 parent 2100a98 commit 2045edd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/react/rsc/spa/app/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ import { ServerComponent } from "./server-component";
document.addEventListener("click", async (e) => {
console.log(sayHello, "hello");

const result = await fetchServerAction("/_server", sayHello["$$id"], []);
const result = await fetchServerAction(
import.meta.env.SERVER_BASE_URL + "/_server",
sayHello["$$id"],
[],
);
console.log(result);
// sayHello();
});
Expand Down

0 comments on commit 2045edd

Please sign in to comment.