Skip to content

Commit 3ea7178

Browse files
No more localhost
1 parent eb1aedf commit 3ea7178

File tree

1 file changed

+1
-1
lines changed
  • app/(with-layout)/surfers/leaderboard

1 file changed

+1
-1
lines changed

app/(with-layout)/surfers/leaderboard/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function Page() {
1919
// Function to fetch leaderboard entries
2020
const fetchLeaderboard = async () => {
2121
try {
22-
const response = await fetch("http://localhost:3000/api/scores");
22+
const response = await fetch("http://hackrpi.com/api/scores");
2323
if (response.ok) {
2424
const data: Result[] = await response.json(); // Ensure the data is typed as Result[]
2525
setLeaderboardEntries(data); // Update state with the fetched leaderboard data

0 commit comments

Comments
 (0)