mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
mocked backed api
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { revalidate } from 'lib/shopify';
|
||||
// import { revalidate } from 'lib/shopify';
|
||||
import { NextRequest, NextResponse } from 'next/server';
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
export async function POST(req: NextRequest): Promise<NextResponse> {
|
||||
return revalidate(req);
|
||||
// return revalidate(req);
|
||||
return NextResponse.json({ status: 200, revalidated: true, now: Date.now() });
|
||||
}
|
||||
|
Reference in New Issue
Block a user