fix: build error

This commit is contained in:
hamster1963 2024-09-22 22:48:56 +08:00
parent 176b422d5b
commit 552be04a31

View File

@ -3,9 +3,13 @@
import { NezhaAPI, ServerApi } from "@/app/types/nezha-api";
import { MakeOptional } from "@/app/types/utils";
import { error } from "console";
import { unstable_noStore as noStore } from "next/cache";
import getEnv from "./env-entry";
export async function GetNezhaData() {
noStore();
var nezhaBaseUrl = getEnv("NezhaBaseUrl");
if (!nezhaBaseUrl) {
error("NezhaBaseUrl is not set");