Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Sep 22, 2024
1 parent 176b422 commit 552be04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/serverFetch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 552be04

Please sign in to comment.