From d3d9591c60571103b38eed7b2dc2cf793972a7bb Mon Sep 17 00:00:00 2001 From: Joel Villarino Date: Sat, 24 Feb 2024 14:44:45 -0600 Subject: [PATCH] Cleaned routing call in Donation.tsx --- src/app/donations/Donation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/donations/Donation.tsx b/src/app/donations/Donation.tsx index 9bc4838..63b8951 100644 --- a/src/app/donations/Donation.tsx +++ b/src/app/donations/Donation.tsx @@ -11,7 +11,7 @@ type DonationInputs = { function Donation({companyName, dollarsRaised}: DonationInputs) { // Import the proportions from the route.ts => how to async function GetData() { - let data = await fetch(`${process.env.NEXT_PUBLIC_SITE_URL}/api/data/`) + let data = await fetch(`/api/data/`) console.log(data) let data_json = await data.json() console.log(data_json)