fix: explicit SshApp[] and Tunnel[] types to fix Vercel build

This commit is contained in:
chunzhimoe 2026-04-12 16:19:52 +08:00
parent 83fa93f7b7
commit 326e0e266e
2 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
import { listAccessApps, filterSshApps } from "@/lib/cloudflare"; import { listAccessApps, filterSshApps, type SshApp } from "@/lib/cloudflare";
import Dashboard from "@/components/Dashboard"; import Dashboard from "@/components/Dashboard";
import { AlertTriangle } from "lucide-react"; import { AlertTriangle } from "lucide-react";
export const revalidate = 60; export const revalidate = 60;
export default async function Home() { export default async function Home() {
let apps; let apps: SshApp[] = [];
let error: string | null = null; let error: string | null = null;
try { try {

View File

@ -1,11 +1,11 @@
import { listTunnels } from "@/lib/cloudflare"; import { listTunnels, type Tunnel } from "@/lib/cloudflare";
import TunnelList from "@/components/TunnelList"; import TunnelList from "@/components/TunnelList";
import { AlertTriangle } from "lucide-react"; import { AlertTriangle } from "lucide-react";
export const revalidate = 30; export const revalidate = 30;
export default async function TunnelsPage() { export default async function TunnelsPage() {
let tunnels; let tunnels: Tunnel[] = [];
let error: string | null = null; let error: string | null = null;
try { try {