small changes

This commit is contained in:
Yifei Hu 2024-07-09 10:24:27 +08:00
parent 676e2231b0
commit 858dc41ebb
2 changed files with 6 additions and 4 deletions

View file

@ -18,7 +18,9 @@ const NewsPage = () => {
const fetchNews = async () => {
try {
console.log("Fetching news...");
const response = await fetch("https://raw.githubusercontent.com/TomorrowMC/newsDemoData/main/data.json");
const response = await fetch(
"https://raw.githubusercontent.com/newspedia-crew/newspedia-web/intern-change/public/data/index.json",
);
console.log("Response status:", response.status);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
@ -72,4 +74,4 @@ const NewsPage = () => {
);
};
export default NewsPage;
export default NewsPage;