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 { 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");
|
||||||
|
Loading…
Reference in New Issue
Block a user