generated from blockmatic-icebox/powerstack
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
choreRoutinary tasksRoutinary tasks
Description
Optimize integrations for Dub.co and YouTube at build time in Next.js. Save the results to a file and ensure the data is read only once every 3 days for YouTube, and only once for Dub.co shortlinks. Define a format to save data as "slug:shortlink".
Task List
- Setup a Timer:
- Implement a timer mechanism to check the last fetch time for YouTube (every 3 days).
- Ensure Dub.co shortlinks are fetched only once and not updated thereafter.
- File Handling:
- Create a utility function to read/write the JSON file in the format "slug:shortlink".
- Integrate file read/write operations within the timer and API functions.
- Code Refactoring and Optimization:
- Ensure all functions are modular and reusable.
- Optimize code for minimal build time and runtime performance impact.
This task list focuses on optimizing the integration processes, managing data fetching frequencies, and ensuring efficient data storage in the specified format.
Metadata
Metadata
Assignees
Labels
choreRoutinary tasksRoutinary tasks
Type
Projects
Status
No status