We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd92c30 commit 0e7aee6Copy full SHA for 0e7aee6
examples/example-app-router-mixed-routing/src/middleware.ts
@@ -5,7 +5,7 @@ export default createMiddleware(routing);
5
6
export const config = {
7
// Match all pathnames except for
8
- // - … if they start with `/api`, `/trpc`, `/_next` or `/_vercel`
+ // - … if they start with `/app`, `/_next` or `/_vercel`
9
// - … the ones containing a dot (e.g. `favicon.ico`)
10
- matcher: '/((?!api|trpc|_next|_vercel|.*\\..*).*)'
+ matcher: '/((?!app|_next|_vercel|.*\\..*).*)'
11
};
examples/example-app-router-mixed-routing/tests/main.spec.ts
@@ -1,4 +1,4 @@
1
-import {test as it, expect} from '@playwright/test';
+import {expect, test as it} from '@playwright/test';
2
3
it('syncs the locale across the public and private pages', async ({page}) => {
4
await page.goto('/');
0 commit comments