Skip to content

Commit

Permalink
🐞 fix(cron): disable cron cache
Browse files Browse the repository at this point in the history
  • Loading branch information
summerscar committed Jan 4, 2025
1 parent f079b87 commit cf25d61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/actions/user-dict-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const getDictRevalidateKey = (dictId: string) => `dict-${dictId}`;
export const allDictsRevalidateKey = "all-dicts";
export const getFavDictRevalidateKey = (dictId: string) => `fav-dict-${dictId}`;

export const allArticlesRevalidateKey = "articles";
export const allArticlesRevalidateKey = "all-articles";
export const getArticleRevalidateKey = (articleId: string) =>
`article-${articleId}`;
export const articleRevalidateKey = "article";
Expand Down
2 changes: 2 additions & 0 deletions app/api/cron/sbs-news/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { revalidateTag } from "next/cache";
import { NextResponse } from "next/server";
import { buildContent } from "./template";

export const dynamic = "force-dynamic";

const youtube = google.youtube("v3");
const channelId = "UCkinYTS9IHqOEwR1Sze2JTw";
// Ensure you set this as an environment variable
Expand Down

0 comments on commit cf25d61

Please sign in to comment.