Skip to content

Commit 765821f

Browse files
committed
chore: rename proxy files to middleware + enable edge runtime
Renames proxy files to middleware for clarity and better reflects its functionality. Adds experimental edge runtime to middleware config.
1 parent a285224 commit 765821f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ export async function proxy(request: NextRequest) {
1717

1818
export const config = {
1919
matcher: ['/((?!api|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)'],
20+
runtime: 'experimental-edge',
2021
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ export default uniformMiddleware({
88

99
export const config = {
1010
matcher: ['/((?!api|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)'],
11+
runtime: 'experimental-edge',
1112
};

0 commit comments

Comments
 (0)