mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: build error
This commit is contained in:
parent
176b422d5b
commit
552be04a31
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user