Skip to content

Commit 7a194eb

Browse files
committed
Rename middleware to proxy
1 parent eaf6009 commit 7a194eb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

playwright.config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ export default defineConfig({
2828
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2929
use: {
3030
/* Base URL to use in actions like `await page.goto('/')`. */
31-
// baseURL: "https://endform-playwright-tutorial.vercel.app",
31+
baseURL: "https://endform-playwright-tutorial.vercel.app",
3232
// You can use this localhost baseURL if you are running the application locally
33-
baseURL: "http://localhost:3000",
33+
// baseURL: "http://localhost:3000",
3434

3535
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
3636
trace: "retain-on-failure",
3737
},
3838

3939
/* Run your local dev server before starting the tests */
40-
webServer: {
41-
command: "pnpm dev",
42-
url: "http://localhost:3000",
43-
reuseExistingServer: !process.env.CI,
44-
},
40+
// webServer: {
41+
// command: "pnpm dev",
42+
// url: "http://localhost:3000",
43+
// reuseExistingServer: !process.env.CI,
44+
// },
4545

4646
projects: [
4747
{

middleware.ts renamed to proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { signToken, verifyToken } from "@/lib/auth/session";
44

55
const protectedRoutes = "/dashboard";
66

7-
export async function middleware(request: NextRequest) {
7+
export async function proxy(request: NextRequest) {
88
const { pathname } = request.nextUrl;
99
const sessionCookie = request.cookies.get("session");
1010
const isProtectedRoute = pathname.startsWith(protectedRoutes);

0 commit comments

Comments
 (0)