mirror of
https://github.com/skidoodle/albert.lol.git
synced 2026-04-28 03:07:40 +02:00
vercel edge config testing
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
import { get } from '@vercel/edge-config';
|
||||
|
||||
export const config = { matcher: '/test' };
|
||||
|
||||
export async function middleware() {
|
||||
const greeting = await get('test passed');
|
||||
return NextResponse.json(greeting);
|
||||
}
|
||||
Reference in New Issue
Block a user