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:
parent
f79c1e8e2d
commit
1ae9b7afde
3 changed files with 21 additions and 1 deletions
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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue