|
@@ -1,10 +1,14 @@
|
|
|
import fetch from "node-fetch";
|
|
|
import fs from "fs/promises";
|
|
|
|
|
|
-const CN_URL =
|
|
|
+const RAW_CN_URL =
|
|
|
"https://raw.githubusercontent.com/PlexPt/awesome-chatgpt-prompts-zh/main/prompts-zh.json";
|
|
|
-const EN_URL =
|
|
|
+const CN_URL =
|
|
|
+ "https://cdn.jsdelivr.net/gh/PlexPt/awesome-chatgpt-prompts-zh@main/prompts-zh.json";
|
|
|
+const RAW_EN_URL =
|
|
|
"https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv";
|
|
|
+const EN_URL =
|
|
|
+ "https://cdn.jsdelivr.net/gh/f/awesome-chatgpt-prompts@main/prompts.csv";
|
|
|
const FILE = "./public/prompts.json";
|
|
|
|
|
|
async function fetchCN() {
|