mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
vercel edge config testing
This commit is contained in:
9
pages/middleware.ts
Normal file
9
pages/middleware.ts
Normal file
@@ -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