Files
2025-11-13 05:05:53 +08:00

31 lines
737 B
TypeScript

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)
}
}