Skip to content

Commit

Permalink
fix: url
Browse files Browse the repository at this point in the history
  • Loading branch information
whes1015 committed Nov 5, 2024
1 parent 593fc97 commit be1179b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function PluginContentIntroduction({
}

async function get_content(repo: string, pkg: string): Promise<string> {
const url = `https://raw.githubusercontent.com/${repo}/master/${pkg}/trem.json`;
const url = `https://raw.githubusercontent.com/${repo}/master/${pkg}/info.json`;
const rsp = await fetch(url);
const data = await rsp.json();
const desc = data.description.zh_tw;
Expand Down
2 changes: 1 addition & 1 deletion src/catalogue/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function fetchEverything(): Promise<Everything> {
}

export async function getInfo(github: string, pkg: string): Promise<trem_json> {
const url = `https://raw.githubusercontent.com/${github}/master/${pkg}/trem.json`;
const url = `https://raw.githubusercontent.com/${github}/master/${pkg}/info.json`;
const rsp = await fetch(url, {
next: {
revalidate: 10 * 60, // ISR 10min
Expand Down

0 comments on commit be1179b

Please sign in to comment.