Skip to content

Commit 9fc5b12

Browse files
committed
feat: set runtime to 'edge' for filter options and resources API routes to enhance performance
1 parent c7befe1 commit 9fc5b12

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/app/api/filter-options/route.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export const runtime = 'edge';
2+
13
import { NextResponse } from 'next/server';
24
import { resources as allResources } from '@/data/resources';
35

src/app/api/resources/route.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export const runtime = 'edge';
2+
13
import { NextResponse } from 'next/server';
24
import { resources as allResources, PAYMENT_TYPES, EU_COUNTRIES } from '@/data/resources';
35

0 commit comments

Comments
 (0)