mocked backed api

This commit is contained in:
Ghita Lucian
2023-08-10 18:01:09 +02:00
parent e8c0ee04fc
commit 84ff7da090
6 changed files with 769 additions and 346 deletions

View File

@@ -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() });
}