fix: explicit SshApp[] and Tunnel[] types to fix Vercel build
This commit is contained in:
parent
83fa93f7b7
commit
326e0e266e
@ -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 {
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user