This commit is contained in:
eric
2025-11-13 05:05:53 +08:00
parent cbdc65f56e
commit 891af61146
691 changed files with 83952 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import { NextResponse } from 'next/server'
import type { SiteConfig } from '@/types/site'
export const runtime = 'edge'
const defaultConfig: SiteConfig = {
basic: {
title: 'NavSphere',
description: 'A modern navigation platform',
keywords: 'navigation, platform, web, management'
},
appearance: {
logo: '/logo.png',
favicon: '/favicon.ico',
theme: 'system'
},
navigation: {
linkTarget: '_blank'
}
}
export async function GET() {
try {
// TODO: 从数据库或文件系统获取配置
// 现在先返回默认配置
return NextResponse.json(defaultConfig)
} catch (error) {
console.error('Error fetching site config:', error)
return NextResponse.json(defaultConfig)
}
}