Skip to content

Commit 0e7aee6

Browse files
committed
fix mixed routing example
1 parent fd92c30 commit 0e7aee6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: examples/example-app-router-mixed-routing/src/middleware.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default createMiddleware(routing);
55

66
export const config = {
77
// Match all pathnames except for
8-
// - … if they start with `/api`, `/trpc`, `/_next` or `/_vercel`
8+
// - … if they start with `/app`, `/_next` or `/_vercel`
99
// - … the ones containing a dot (e.g. `favicon.ico`)
10-
matcher: '/((?!api|trpc|_next|_vercel|.*\\..*).*)'
10+
matcher: '/((?!app|_next|_vercel|.*\\..*).*)'
1111
};

Diff for: examples/example-app-router-mixed-routing/tests/main.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {test as it, expect} from '@playwright/test';
1+
import {expect, test as it} from '@playwright/test';
22

33
it('syncs the locale across the public and private pages', async ({page}) => {
44
await page.goto('/');

0 commit comments

Comments
 (0)