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