fix: make /api/server-config non static

This commit is contained in:
shinya
2025-07-09 23:39:03 +08:00
parent 1338e788cc
commit 8572b75e2a
2 changed files with 6 additions and 2 deletions

View File

@@ -1,10 +1,14 @@
/* eslint-disable no-console */
import { NextRequest, NextResponse } from 'next/server';
import { getConfig } from '@/lib/config';
export const runtime = 'edge';
export async function GET(_: NextRequest) {
export async function GET(request: NextRequest) {
console.log('server-config called: ', request.url);
const config = getConfig();
const result = {
SiteName: config.SiteConfig.SiteName,