minecraft-website/src/config/navigation.ts
Nicholai 3c2368d886 Fix API routes for Cloudflare Workers and enable preview URLs
- Remove unsupported next: { revalidate } option from API routes
- Add Cloudflare-specific cache configuration (cf.cacheTtl)
- Add User-Agent and Referer headers to bypass Plan API 403 errors
- Enable workers_dev and preview_urls in wrangler.jsonc to prevent disabling on deployment
2025-11-09 20:59:46 -07:00

32 lines
508 B
TypeScript

export interface NavItem {
label: string;
href: string;
external?: boolean;
icon?: React.ReactNode;
}
export interface NavDropdown {
label: string;
items: Array<{
title: string;
description?: string;
href: string;
}>;
}
export const navigationItems: Array<NavItem | NavDropdown> = [
{
label: "Home",
href: "/",
},
{
label: "Server",
href: "/#server-status",
},
{
label: "Community",
href: "https://discord.gg/invite",
external: true,
},
];