File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,9 @@ RUN apk add --no-cache libc6-compat
66
77WORKDIR /app
88
9- COPY package.json yarn.lock* package-lock.json* ./
9+ COPY package.json yarn.lock ./
1010
11- RUN \
12- if [ -f yarn.lock ]; then yarn install --frozen-lockfile --network-timeout 100000; \
13- elif [ -f package-lock.json ]; then npm ci; \
14- else echo "Lockfile not found." && exit 1; \
15- fi
11+ RUN yarn install
1612
1713FROM base AS builder
1814
Original file line number Diff line number Diff line change 11import fetch from "node-fetch" ;
22import fs from "fs/promises" ;
33
4- const CN_URL =
4+ const RAW_CN_URL =
55 "https://raw.githubusercontent.com/PlexPt/awesome-chatgpt-prompts-zh/main/prompts-zh.json" ;
6- const EN_URL =
6+ const CN_URL =
7+ "https://cdn.jsdelivr.net/gh/PlexPt/awesome-chatgpt-prompts-zh@main/prompts-zh.json" ;
8+ const RAW_EN_URL =
79 "https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv" ;
10+ const EN_URL =
11+ "https://cdn.jsdelivr.net/gh/f/awesome-chatgpt-prompts@main/prompts.csv" ;
812const FILE = "./public/prompts.json" ;
913
1014async function fetchCN ( ) {
You can’t perform that action at this time.
0 commit comments