Skip to content

Commit 4b50821

Browse files
committed
update to new link
1 parent 7dd78ab commit 4b50821

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/app/dashboard/hooks/useBuildTimeData.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import React, { useEffect, useState } from 'react';
55
const useBuildTimeData = async (username) => {
66
// console.log('entering use effect useBuildTimeData for:', username);
77
try {
8-
// const res = await fetch(`https://nextlevel-dash.com/dashboard/api/build?username=${username}`);
9-
const res = await fetch(`http://localhost:3000/dashboard/api/build?username=${username}`);
8+
const res = await fetch(`https://nextlevel-dash.com/dashboard/api/build?username=${username}`);
9+
// const res = await fetch(`http://localhost:3000/dashboard/api/build?username=${username}`);
1010
if (res.ok) {
1111
// console.log('Res from useBuildTimeData:', res);
1212
const data = await res.json();

src/app/dashboard/hooks/useBundleData.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import React, { useEffect, useState } from 'react';
55
const useBundleData = async (username) => {
66
// console.log('entering use effect usebundledata for:', username);
77
try {
8-
// const res = await fetch(`https://nextlevel-dash.com/dashboard/api/bundle?username=${username}`);
9-
const res = await fetch(`http://localhost:3000/dashboard/api/bundle?username=${username}`);
8+
const res = await fetch(`https://nextlevel-dash.com/dashboard/api/bundle?username=${username}`);
9+
// const res = await fetch(`http://localhost:3000/dashboard/api/bundle?username=${username}`);
1010
if (res.ok) {
1111
// console.log('res from useBundleData:', res);
1212
const data = await res.json();

src/app/dashboard/hooks/useWebVitalsData.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
async function fetchWebVitals (username, metricType, startDate, endDate) {
44
try {
5-
// const res = await fetch(`https://nextlevel-dash.com/dashboard/api/webvitals?username=${username}&metricType=${metricType}`);
6-
const res = await fetch(`http://localhost:3000/dashboard/api/webvitals?username=${username}&metricType=${metricType}&start=${startDate}&end=${endDate}`);
5+
const res = await fetch(`https://nextlevel-dash.com/dashboard/api/webvitals?username=${username}&metricType=${metricType}&start=${startDate}&end=${endDate}`);
6+
// const res = await fetch(`http://localhost:3000/dashboard/api/webvitals?username=${username}&metricType=${metricType}&start=${startDate}&end=${endDate}`);
77
if (res.ok) {
88
// console.log('Res from useWebVitalsData:', res);
99
const resData = await res.json();

src/app/onboarding/components/Step.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Step = ({ stepNumber, title, description, code, language, api, username })
88

99
useEffect(() => {
1010
if(api === true) {
11-
fetch(`http://localhost:3000/onboarding/api?username=${username}`)
11+
fetch(`https://nextlevel-dash.com/onboarding/api?username=${username}`)
1212
.then((res) => {
1313
if (res.ok) {
1414
// console.log('res:', res);

0 commit comments

Comments
 (0)