forked from akai/readest
api: fix cors for api with new nextjs version (#1633)
This commit is contained in:
@@ -45,5 +45,5 @@ export function middleware(request: NextRequest) {
|
||||
}
|
||||
|
||||
export const config = {
|
||||
matcher: ['/api/stripe/:path*', '/api/metadata/:path*'],
|
||||
matcher: ['/api/:path*', '/api/stripe/:path*', '/api/metadata/:path*'],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user