Adds /api/health, ntfy notify on config save, /admin/analytics charts, and deploy smoke for miniprogram config/API. Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
324 B
TypeScript
13 lines
324 B
TypeScript
import { NextResponse } from "next/server";
|
|
import { readRemoteConfigFile } from "~/lib/remote-config-store";
|
|
|
|
/** Public remote config for portal + miniprogram */
|
|
export async function GET() {
|
|
const config = await readRemoteConfigFile();
|
|
return NextResponse.json({
|
|
ok: true,
|
|
source: "file",
|
|
config,
|
|
});
|
|
}
|