You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
import OSS from "ali-oss";
import { Movie } from "~/types/movie";
export const ossStore = new OSS({
region: "oss-cn-hangzhou",
accessKeyId: process.env.ACCESS_KEY_ID as string,
accessKeySecret: process.env.ACCESS_KEY_SECRET as string,
bucket: "cq-movie",
});
export async function getMovieList(): Promise<Movie[]> {
const result = await ossStore.get("movie.json");
const buf = Buffer.from(result.content);
return JSON.parse(buf.toString());
}
The text was updated successfully, but these errors were encountered: