Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit ea34e4a

Browse files
committed
chore(example-next-js): configure frontend (#1400)
1 parent 48de40a commit ea34e4a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/next-js/src/components/Counter.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ import type { registry } from "@/rivet/registry";
55
import { useState } from "react";
66
import styles from "./Counter.module.css";
77

8-
export const { useActor } = createRivetKit<typeof registry>(
9-
process.env.NEXT_RIVET_ENDPOINT ?? "http://localhost:3000/api/rivet",
10-
);
8+
export const { useActor } = createRivetKit<typeof registry>({
9+
endpoint: process.env.NEXT_PUBLIC_RIVET_ENDPOINT ?? "http://localhost:3000/api/rivet",
10+
namespace: process.env.NEXT_PUBLIC_RIVET_NAMESPACE,
11+
token: process.env.NEXT_PUBLIC_RIVET_TOKEN,
12+
});
1113

1214
export function Counter() {
1315
const [count, setCount] = useState(0);

0 commit comments

Comments
 (0)