Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the logic of loading file #5

Merged
merged 14 commits into from
Jul 12, 2024
Merged

Change the logic of loading file #5

merged 14 commits into from
Jul 12, 2024

Conversation

TomorrowMC
Copy link

The way to load JSON file has changed, it now read the local JSON file from ui/public/data, not the original remote server.

Polish the style of provider image and Read More button.

ui/lib/fetchNewsData.ts Outdated Show resolved Hide resolved
ui/app/api/news/route.ts Show resolved Hide resolved
@TomorrowMC
Copy link
Author

combine the fetchnewsdata.ts code to route.ts.

Some effects:
To run the yarn build, it is needed to change the file name from .env.example to .env.local, and change the port 3001 to 3000 in that file.

@guanghechen guanghechen merged commit ebfae3a into main Jul 12, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants