Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update nextjs-server-components.mdx

mriiosd3faceff7390
diff --git a/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx b/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx
index 4f60e7d3581..69a5d5e6d3c 100644
--- a/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx
+++ b/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx
@@ -140,7 +140,7 @@ export async function middleware(req) {
<TabPanel id="ts" label="TypeScript">
-Create a new `/app/middleware.js` file and populate with the following:
+Create a new `/app/middleware.ts` file and populate with the following:
```tsx title="middleware.ts"
import { createMiddlewareSupabaseClient } from '@supabase/auth-helpers-nextjs'