chore: update env.example and NestedMenuItem in index.d.ts

This commit is contained in:
javayhu 2025-04-19 11:54:05 +08:00
parent eff72bee91
commit 9c385b11a7
2 changed files with 9 additions and 15 deletions

View File

@ -5,10 +5,17 @@
# -----------------------------------------------------------------------------
NEXT_PUBLIC_BASE_URL="http://localhost:3000"
# -----------------------------------------------------------------------------
# Database
# https://orm.drizzle.team/docs/get-started/neon-new
# https://orm.drizzle.team/docs/connect-supabase
# -----------------------------------------------------------------------------
DATABASE_URL=""
# -----------------------------------------------------------------------------
# Better Auth
# https://www.better-auth.com/docs/installation
# Click `Generate Secret` button in Better Auth documentation
# Generate a random string for the secret key using `openssl rand -base64 32`
# -----------------------------------------------------------------------------
BETTER_AUTH_SECRET=""
@ -28,13 +35,6 @@ GITHUB_CLIENT_SECRET=""
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
# -----------------------------------------------------------------------------
# Database (Neon or Supabase or database provider of your choice)
# https://orm.drizzle.team/docs/get-started/neon-new
# https://orm.drizzle.team/docs/connect-supabase
# -----------------------------------------------------------------------------
DATABASE_URL=""
# -----------------------------------------------------------------------------
# Email (Resend)
# https://resend.com/docs/api-reference/introduction

View File

@ -116,12 +116,6 @@ export type MenuItem = {
/**
* nested menu item, used for navbar links, sidebar links, footer links
*/
export type NestedMenuItem = {
title: string;
description?: string;
icon?: ReactNode;
href?: string;
external?: boolean;
authorizeOnly?: string[];
export type NestedMenuItem = MenuItem & {
items?: MenuItem[]; // The items to display in the nested menu
};